Boost logo

Boost :

Subject: Re: [boost] review request: addition to type_traits libraryofis_less_comparable<T, U> and others
From: John Maddock (john_at_[hidden])
Date: 2009-12-07 05:34:40


>> Where R is the expected return type. In all but a vanishingly small
>> number
>> of cases R will be bool. If you really want to support the "don't care"
>> case for a return type, use has_operator_less<T, dont_care> where
>> "dont_care" is a special placeholder type that you define (could use a
>> better name though?).
>
> the "don't care" case was a strong requirement from previous discussion.
> I like your proposed solution has_operator_less<T, U, dont_care>
>
> dont_care would have to be an empty class maybe
> boost::type_traits::dont_care?

Yep.

John.


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