Boost logo

Boost :

Subject: Re: [boost] [scope_exit] can MSVC lambdas capture data members?
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-03-16 13:59:07


on Fri Mar 16 2012, Mathias Gaunard <mathias.gaunard-AT-ens-lyon.org> wrote:

> On 16/03/12 03:42, Alexander Nasonov wrote:
>
>> If we assume that the new standard is immutable, then you reasoning
>> makes perfect sense. However, what if it was an oversight by the
>> standard committee? 'this' is not a local variable, after all. If they
>> allowed a special case for this, they could also allow data members.
>
> It is not an oversight, and is this way on purpose.

That may be, but it is considered a mistake by at least a few of us on
the commitee, and we've discussed ways to rectify it.

-- 
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