
2 Dec
2007
2 Dec
'07
8:10 p.m.
"Hugo Duncan" <hugoduncan@users.sourceforge.net> wrote in message news:op.t2krrtuczbhucb@localhost...
Hi,
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 ?
I've fixed in local version. I'll commit it when I have a time. Gennadiy