Boost logo

Boost :

Subject: [boost] [Test] should we consider to turn off argument deduction for 2nd template parameter
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-12-03 09:08:34

Hi Genndiy,

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.


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