
13 Jan
2009
13 Jan
'09
12:57 p.m.
Mathias Gaunard <mathias.gaunard <at> ens-lyon.org> writes:
You may not write [&](a) { return a + 42; } You have to write [&](SomeType a) { return a + 42; }
We're talking about different things. Your examples show lambda parameters while my example has no parameters at all, only captures: [&a, b]() -> void { /* ... */ } ^^ - no parameters -- Alex