Boost logo

Boost Users :

Subject: [Boost-users] [test] upgrading from 1.58 to 1.59
From: Mathieu Champlon (m.champlon_at_[hidden])
Date: 2015-09-05 10:44:02


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::
Snippet fraction_tolerance( tolerance ) ) )
         ...

As these seem to have been replaced/generalized starting with boost 1.59
I need to upgrade my code.
Surely this involves using boost::test_tools::tolerance() but I'm
getting a bit lost in the internals of Boost.Test.
Could someone shed some light ?

Thanks !
MAT.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net