From d76efeb645e6437d0e8cd932dcc07380833e2ff4 Mon Sep 17 00:00:00 2001 From: Paul Jansen <41337509+pauljansen42@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:14:02 +0200 Subject: [PATCH] Removed confusing comments (#2076) (#2179) --- CppCoreGuidelines.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 038830a..f0b4ac4 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -4151,8 +4151,6 @@ It's confusing. Writing `[=]` in a member function appears to capture by value, // ... auto lambda = [=] { use(i, x); }; // BAD: "looks like" copy/value capture - // [&] has identical semantics and copies the this pointer under the current rules - // [=,this] and [&,this] are not much better, and confusing x = 42; lambda(); // calls use(0, 42);