Using Lambda with variables in deriving class: Regression or not?

Jonathan Wakely jwakely.gcc@gmail.com
Fri Feb 17 11:56:00 GMT 2012


On 17 February 2012 10:30, Deniz Sarikaya wrote:
> Hello,
>
> I don't know if this is already known but in a member function, when I
> use any variable of the derived class in a lambda,
> I get the following error: capture of non-variable 'Derived::Class::variable'

Code or it didn't happen.

i.e. why are you expecting people to guess what you mean, instead of
showing an example that demonstrates the problem?



More information about the Gcc-help mailing list