Boost logo

Boost :

Subject: [boost] [test] floating point comparison
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2015-04-25 21:42:01


Can someone please tell me exactly what do I need to include and which
namespace to use to get exact same behavior as:

#include <boost/test/floating_point_comparison.hpp>

bool check( float a, float b, float tolerance )
    using namespace boost::test_tools;
    return check_is_close(a,b,fraction_tolerance(tolerance));

(The above used to work with older Boost versions but no longer.)


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