Skip to content

Commit 0f9ebdc

Browse files
authored
Merge 2019-02 CWG Motion 5
P1381R1 Reference capture of structured bindings Fixes #2685.
2 parents c9b9f14 + c8e9bac commit 0f9ebdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2296,7 +2296,7 @@
22962296
static_assert([](int n) { return [&n] { return ++n; }(); }(3) == 4);
22972297
\end{codeblock}
22982298
\end{example}
2299-
A bit-field, a structured binding, or a member of an anonymous union
2299+
A bit-field or a member of an anonymous union
23002300
shall not be captured by reference.
23012301

23022302
\pnum

0 commit comments

Comments
 (0)