Boost logo

Boost :

Subject: Re: [boost] [scope_exit] can MSVC lambdas capture data members?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-03-16 16:31:20


On 16/03/12 20:55, lcaminiti wrote:

> Then, as Alex suggested, I will leave the BOOST_SCOPE_EXIT implementation
> that uses lambdas however it will be disabled by default, enabled only if
> users explicitly #define BOOST_SCOPE_EXIT_CONFIG_USE_CXX11_LAMBDAS, and I
> will document that BOOST_SCOPE_EXIT with lambdas is not backward compatible
> (unless C++11 is rectified to allow lambdas to capture data members).

Or you could change your library to explicitly require to bind member
variables or this, like C++11 does.


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