Boost logo

Boost :

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


Steven Watanabe skrev:
> AMDG
>
> Thorsten Ottosen wrote:

>> 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/floating_point_promotion.html

Could be ok. I guesss an alternative would be to have the function for
long double. Both of these, however, seems to work bad with wrapped
floats from e.g. Boost.Units. Therefore my original suggestion might be
better.

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk