Skip to content

Commit c071212

Browse files
authored
Merge 2021-02 CWG Motion 3
2 parents d02d97b + f129437 commit c071212

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

source/expressions.tex

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,8 +1636,8 @@
16361636

16371637
\begin{bnf}
16381638
\nontermdef{lambda-expression}\br
1639-
lambda-introducer \opt{lambda-declarator} compound-statement\br
1640-
lambda-introducer \terminal{<} template-parameter-list \terminal{>} \opt{requires-clause} \opt{lambda-declarator} compound-statement
1639+
lambda-introducer lambda-declarator compound-statement\br
1640+
lambda-introducer \terminal{<} template-parameter-list \terminal{>} \opt{requires-clause} lambda-declarator compound-statement
16411641
\end{bnf}
16421642

16431643
\begin{bnf}
@@ -1647,8 +1647,13 @@
16471647

16481648
\begin{bnf}
16491649
\nontermdef{lambda-declarator}\br
1650-
\terminal{(} parameter-declaration-clause \terminal{)} \opt{decl-specifier-seq}\br
1651-
\bnfindent\opt{noexcept-specifier} \opt{attribute-specifier-seq} \opt{trailing-return-type} \opt{requires-clause}
1650+
lambda-specifiers\br
1651+
\terminal{(} parameter-declaration-clause \terminal{)} lambda-specifiers \opt{requires-clause}
1652+
\end{bnf}
1653+
1654+
\begin{bnf}
1655+
\nontermdef{lambda-specifiers}\br
1656+
\opt{decl-specifier-seq} \opt{noexcept-specifier} \opt{attribute-specifier-seq} \opt{trailing-return-type}
16521657
\end{bnf}
16531658

16541659
\pnum
@@ -1681,7 +1686,7 @@
16811686
\end{note}
16821687

16831688
\pnum
1684-
If a \grammarterm{lambda-expression} does not include a
1689+
If a \grammarterm{lambda-expression} includes an empty
16851690
\grammarterm{lambda-declarator}, it is as if the \grammarterm{lambda-declarator} were
16861691
\tcode{()}.
16871692
The lambda return type is \tcode{auto}, which is replaced by the

0 commit comments

Comments
 (0)