Boost logo

Boost :

Subject: Re: [boost] [scope_exit] can MSVC lambdas capture data members?
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2012-03-14 15:48:00

GCC 4.5 is in error to allow that. 4.7 does not allow it.

The correct way to use a data member in the lambda is to capture "this", and then
access the member via "this->member" inside the lambda.


Boost list run by bdawes at, gregod at, cpdaniel at, john at