$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Will Bryant (will_at_[hidden])
Date: 2005-09-21 03:18:04
Hi all,
Is BOOST_CHECK_CLOSE supposed to work with integral types? I find that
if I try:
long var1 = 1001;
BOOST_CHECK_CLOSE(var1, 2000L, 10L);
under both MSVC 2005 and GCC 3.4, it'll pass, which is wrong as far as I
can see - whereas:
double var2 = 1001.0;
BOOST_CHECK_CLOSE(var2, 2000.0, 10.0);
fails as it should.
Why is this? int has the same problem.
Cheers,
Will
-- Will Bryant http://carcino.gen.nz/ will_at_[hidden] +64 21 655 443