Boost logo

Boost :

Subject: Re: [boost] [result_of] now uses decltype on release branch
From: Joel de Guzman (djowel_at_[hidden])
Date: 2012-09-05 12:14:34


On 9/5/12 11:33 PM, Eric Niebler wrote:
>> >I'm not sure. To me, I think it's easier to simply avoid result_of
>> >on C++11 and just use decltype directly. Problem solved. Why use an
>> >inferior tool when something better is available anyway?

> In the case where you need an overload to drop out because of the
> ill-formed-ness of a call expression, I agree with you. If you mean to
> swear off using result_of entirely because of this issue, then you'd be
> making your code non-portable for no good reason.

How so? I can keep using result_of in '03 code and use decltype
in '11 code. I see no reason how that will be non-portable.

PS> If you stop acting like the police, perhaps more people
will stop behaving like renegades ;-)

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://boost-spirit.com

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