Boost logo

Boost :

Subject: Re: [boost] [type traits] Extension to operator detection -> choose your preferred naming
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-08-24 13:13:44


on Wed Aug 24 2011, "Paul A. Bristow" <pbristow-AT-hetp.u-net.com> wrote:

> boost-bounces_at_[hidden] wrote:
>> choose your preferred naming
>>
>> It is time to include the type trait extension to the official boost trunk.
>> These traits can detect if you can use a given operator with given arguments.
>>
>> For example: has_plus<double, int>::value is true because the
>> following program compiles without
>> error:
>>
>> double lhs;
>> int rhs;
>> lhs+rhs;

This checks for the ability to add lvalues. Is there a way to check for
rvalues? Just curious.

>> We have come to three proposed lists of names (A, B and C):
>> https://svn.boost.org/trac/boost/wiki/GuideLines/Naming/OperatorTraitNames
>> I have included the corresponding names of standard keywords,
>> standard function objects from
>> <functional>, boost Proto and boost Operators.
>>
>> Please give your preference between A, B and C before Sept. 5th.

C

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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