mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fixed comment in example code of F.54 (#1082)
This commit is contained in:
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…
Reference in New Issue
Block a user