4 ms·
struct foo { void bar(int a, int b) { auto lambda = [&] (auto this self) { this->compute(); }; } void compute(); }; if th
by jcelerier 4y ago
struct foo
{
void bar(int a, int b) {
auto lambda = [&] (auto this self) {
this->compute();
};
}
void compute();
};
if the variable name was "auto this" you wouldn't be able to refer to "compute" through the "this" of the parent class here