|
Boost : |
Subject: Re: [boost] [result_of] now uses decltype on release branch
From: Joel de Guzman (djowel_at_[hidden])
Date: 2012-09-05 18:56:35
On 9/6/12 1:00 AM, Eric Niebler wrote:
> On 9/5/2012 12:14 PM, Joel de Guzman wrote:
>> 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.
>
> I mean that you can use boost::result_of everywhere except where you
> need to select overloads on
So avoiding result_of == non-portable ?
>> PS> If you stop acting like the police, perhaps more people
>> will stop behaving like renegades ;-)
>
> The winky-face here doesn't make that comment acceptable. Since when is
> maintaining a library "acting like the police"? Let me remind you: we're
> here because you've been neglecting the maintenance of your own
> libraries, Phoenix and Fusion, which have been broken by the
> decltype-result_of on trunk since APRIL.
That tone is exactly my point ;-) And yes, that's another winky face.
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