C++ Logo

sg10

Advanced search

Re: [SG10] P0018 and P0170: lambda-related changes

From: Jason Merrill <jason_at_[hidden]>
Date: Fri, 11 Mar 2016 14:28:18 -0500
On 03/11/2016 02:27 PM, Nelson, Clark wrote:
>>> I think it would be perfectly reasonable to bump __cpp_constexpr
>> again
>>> for lambdas.
>>
>> Fine with me.
>
> If anyone doesn't agree with this direction, please speak up.
>
>>> But I'm still leaning towards having a separate macro for
>>> capturing *this, at least in part for consistency with
>>> __cpp_init_capture.
>>
>> Agreed.
>
> I made a couple of proposals for the name of this new macro:
>
> __cpp_capture_this
> __cpp_capture_this_object
>
> Any preferences, or alternate suggestions?

I prefer the second, or perhaps __cpp_capture_this_value.

Jason

Received on 2016-03-11 20:28:24