Fix incorrect lambda expression capture of [this].

This commit is contained in:
Anthony Calandra
2020-06-26 22:03:08 -04:00
parent 58b21474c8
commit aff25ca533
2 changed files with 2 additions and 2 deletions

View File

@@ -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++