id summary reporter owner description type status milestone component version severity resolution keywords cc 1489 BOOST_CHECK_CLOSE fails to compile with templated value type Hugo Duncan Gennadiy Rozental "I was wanting to check two boost::numeric::interval's for closeness, but find I get a compile error. The below fails to compile, with the error messages shown. I believe this is because i) the comparison operator for interval is templated, ii) boost.test wraps one of the values with a readonly_property and therefore the template is not an exact match. Changing the tolerance to an interval does not change anything. This is with MSVC8 and with gcc 3.4.4 on windows. Is this a bug, a missing feature - or am I misusing BOOST_CHECK_CLOSE ? c:\cygwin\home\duncan\boost\boost/test/floating_point_comparison.hpp(184) : error C2679: binary '<=' : no operator found which takes a right-hand operand of type 'const boost::unit_test::readonly_property' (or there is no acceptable conversion) with [ PropertyType=boost::numeric::interval ] c:\cygwin\home\duncan\boost\boost/numeric/interval/interval.hpp(82): could be 'bool boost::numeric::interval::operator <=(const boost::numeric::interval::interval_holder &) const' with [ T=double ] c:\cygwin\home\duncan\boost\boost/numeric/interval/interval.hpp(89): or 'bool boost::numeric::interval::operator <=(const boost::numeric::interval::number_holder &) const' with [ T=double ] while trying to match the argument list '(boost::numeric::interval, const boost::unit_test::readonly_property)' with [ T=double ] and [ PropertyType=boost::numeric::interval ]" Bugs closed To Be Determined test Boost Development Trunk Problem worksforme