From 63316bc0dc64856b334f4808751166e53fd58a1a Mon Sep 17 00:00:00 2001 From: hsutter Date: Tue, 12 Jan 2016 12:04:32 -0800 Subject: [PATCH] Corrected F.54, part 2 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index b64d7d0..2943112 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -3072,7 +3072,7 @@ It's confusing. Writing `[=]` in a member function appears to capture by value, auto lambda = [=]{ use(i,x); }; // BAD: "looks like" copy/value capture // notes: [&] has identical semantics and copies the this pointer under the current rules - // [=,this] and [&,this] are identical in this case, and still confusing in general + // [=,this] and [&,this] are not much better, and confusing x = 42; lambda(); // calls use(42); x = 43;