File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 1690
1690
1691
1691
\begin {bnf }
1692
1692
\nontermdef {lambda-specifiers}\br
1693
- \opt {decl-specifier-seq} \opt {noexcept-specifier} \opt {attribute-specifier-seq} \opt {trailing-return-type}
1693
+ \opt {lambda-specifier-seq} \opt {noexcept-specifier} \opt {attribute-specifier-seq} \opt {trailing-return-type}
1694
+ \end {bnf }
1695
+
1696
+ \begin {bnf }
1697
+ \nontermdef {lambda-specifier}\br
1698
+ \keyword {consteval}\br
1699
+ \keyword {constexpr}\br
1700
+ \keyword {mutable}
1701
+ \end {bnf }
1702
+
1703
+ \begin {bnf }
1704
+ \nontermdef {lambda-specifier-seq}\br
1705
+ lambda-specifier\br
1706
+ lambda-specifier lambda-specifier-seq
1694
1707
\end {bnf }
1695
1708
1696
1709
\pnum
1715
1728
\end {note }
1716
1729
1717
1730
\pnum
1718
- In the \grammarterm {decl -specifier-seq} of the \grammarterm {lambda-declarator},
1719
- each \grammarterm {decl -specifier}
1720
- shall be one of \keyword {mutable}, \keyword { constexpr}, or \keyword {consteval}.
1731
+ A \grammarterm {lambda -specifier-seq}
1732
+ shall contain at most one of each \grammarterm {lambda -specifier} and
1733
+ shall not contain both \keyword {constexpr} and \keyword {consteval}.
1721
1734
If the \grammarterm {lambda-declarator} contains
1722
1735
an explicit object parameter\iref {dcl.fct },
1723
- then no \grammarterm {decl -specifier} in the \grammarterm {decl -specifier-seq}
1736
+ then no \grammarterm {lambda -specifier} in the \grammarterm {lambda -specifier-seq}
1724
1737
shall be \keyword {mutable}.
1725
1738
\begin {note }
1726
1739
The trailing \grammarterm {requires-clause} is described in \ref {dcl.decl }.
You can’t perform that action at this time.
0 commit comments