Boost logo

Boost :

From: JOLY Loic (loic.joly_at_[hidden])
Date: 2003-10-06 10:45:06


I am new tho boost::test, and I tried to use it the following way :

BOOST_CHECK_CLOSE(3.1415f, 3.1415, 1e-06);

The compiler (VC++7.1) complains about using a float and a double in
this comparison. And with a more complex expression, the message becomes

I am not sure what whould be best to solve this problem : Making
template close_at_tolerance a two parameters template (is it worth the
added complexity?), or just documenting this limit.



Boost list run by bdawes at, gregod at, cpdaniel at, john at