From aff25ca533f22e0636693805b831719742e5b592 Mon Sep 17 00:00:00 2001 From: Anthony Calandra Date: Fri, 26 Jun 2020 22:03:08 -0400 Subject: [PATCH] Fix incorrect lambda expression capture of [this]. --- CPP11.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CPP11.md b/CPP11.md index 88c3e42..db262db 100644 --- a/CPP11.md +++ b/CPP11.md @@ -211,7 +211,7 @@ A `lambda` is an unnamed function object capable of capturing variables in scope * `[]` - captures nothing. * `[=]` - capture local objects (local variables, parameters) in scope by value. * `[&]` - capture local objects (local variables, parameters) in scope by reference. -* `[this]` - capture `this` pointer by value. +* `[this]` - capture `this` by reference. * `[a, &b]` - capture objects `a` by value, `b` by reference. ```c++ diff --git a/README.md b/README.md index 5ea26f1..62e666e 100644 --- a/README.md +++ b/README.md @@ -1371,7 +1371,7 @@ A `lambda` is an unnamed function object capable of capturing variables in scope * `[]` - captures nothing. * `[=]` - capture local objects (local variables, parameters) in scope by value. * `[&]` - capture local objects (local variables, parameters) in scope by reference. -* `[this]` - capture `this` pointer by value. +* `[this]` - capture `this` by reference. * `[a, &b]` - capture objects `a` by value, `b` by reference. ```c++