|
Boost : |
Subject: Re: [boost] [Test] should we consider to turn off argument deduction for 2nd template parameter
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-03 12:29:51
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.
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk