Fixed comment in example code of F.54 (#1082)

pull/1086/head
Florian Behrens 8 years ago committed by Sergey Zubkov
parent df68bfdc5b
commit 3d4e860bdd

@ -3835,9 +3835,9 @@ It's confusing. Writing `[=]` in a member function appears to capture by value,
// [=,this] and [&,this] are not much better, and confusing
x = 42;
lambda(); // calls use(42);
lambda(); // calls use(0, 42);
x = 43;
lambda(); // calls use(43);
lambda(); // calls use(0, 43);
// ...

Loading…
Cancel
Save