W
wo3kie
Hi,
I such example, is 'this' caught by a reference?
struct S{
void f(){
[&](){ this->i = 0;}();
}
int i;
};
I believe it is not, I think it is still caught by a value, but may you provide me some more explanation and maybe even a C++11 standard statement about this.
Thank you
Åukasz
I such example, is 'this' caught by a reference?
struct S{
void f(){
[&](){ this->i = 0;}();
}
int i;
};
I believe it is not, I think it is still caught by a value, but may you provide me some more explanation and maybe even a C++11 standard statement about this.
Thank you
Åukasz