tmp/tmp882x91na/{from.md → to.md}
RENAMED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
## Implicit capture of `*this` by reference <a id="depr.capture.this">[[depr.capture.this]]</a>
|
| 2 |
|
| 3 |
-
For compatibility with prior C++
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
reference.
|
| 7 |
|
| 8 |
[*Example 1*:
|
| 9 |
|
| 10 |
``` cpp
|
| 11 |
struct X {
|
|
|
|
| 1 |
## Implicit capture of `*this` by reference <a id="depr.capture.this">[[depr.capture.this]]</a>
|
| 2 |
|
| 3 |
+
For compatibility with prior revisions of C++, a *lambda-expression*
|
| 4 |
+
with *capture-default* `=` [[expr.prim.lambda.capture]] may implicitly
|
| 5 |
+
capture `*this` by reference.
|
|
|
|
| 6 |
|
| 7 |
[*Example 1*:
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
struct X {
|