5 Sep
2015
5 Sep
'15
7:39 p.m.
On 05/09/2015 16:44, Mathieu Champlon wrote:
Hello,
Prior to boost 1.59 I had code using the floating point comparisons of Boost.Test as in
if( boost::test_tools::check_is_close( v1, v2, boost::test_tools::percent_tolerance( tolerance ) ) ) ...
if( boost::test_tools::check_is_close( v1, v2, boost::test_tools::fraction_tolerance( tolerance ) ) ) ...
As these seem to have been replaced/generalized starting with boost 1.59 I need to upgrade my code.
It looks like I can still use boost::test_tools::check_is_close like this respectively : if( boost::test_tools::check_is_close( v1, v2, tolerance / 100 ) ) ... if( boost::test_tools::check_is_close( v1, v2, tolerance ) ) ... Am I right ? Thanks ! MAT.