mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Fixed comment in example code of F.54 (#1082)
This commit is contained in:
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
|
// [=,this] and [&,this] are not much better, and confusing
|
||||||
|
|
||||||
x = 42;
|
x = 42;
|
||||||
lambda(); // calls use(42);
|
lambda(); // calls use(0, 42);
|
||||||
x = 43;
|
x = 43;
|
||||||
lambda(); // calls use(43);
|
lambda(); // calls use(0, 43);
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user