
3 Dec
2008
3 Dec
'08
5:29 p.m.
AMDG Thorsten Ottosen wrote:
When I write code like
BOOST_CHECK_CLOSE( a->conditionals().sum(), 2., 0.001f );
I tend to get a compilation error the first time, because I wrote
BOOST_CHECK_CLOSE( a->conditionals().sum(), 2, 0.001f );
I think that many users are not helped very much by the resulting error messages deep inside the test library.
Maybe we should consider to turn off deduction for the second argument with
template< class T > bool operator()( T l, mpl::identity<T>::type r, ... );
?
Any thoughts.
Maybe use http://www.boost.org/libs/type_traits/doc/html/boost_typetraits/reference/fl... In Christ, Steven Watanabe