Skip to content

Commit 0193ee8

Browse files
burblebeetkoeppe
authored andcommitted
CWG2881 Type restrictions for the explicit object parameter of a lambda
1 parent 76bf42d commit 0193ee8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@
20122012
\item
20132013
the closure type,
20142014
\item
2015-
a class type derived from the closure type, or
2015+
a class type publicly and unambiguously derived from the closure type, or
20162016
\item
20172017
a reference to a possibly cv-qualified such type.
20182018
\end{itemize}

source/templates.tex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7445,6 +7445,13 @@
74457445
Attempting to create a function type in which a parameter has a type
74467446
of \keyword{void}, or in which the return type is a function type
74477447
or array type.
7448+
7449+
\item
7450+
%FIXME: What's it mean to "give" a type "to" a parameter?
7451+
%FIXME: See also "Attempting to give an invalid type to ..." above.
7452+
Attempting to give to
7453+
an explicit object parameter of a lambda's function call operator
7454+
a type not permitted for such\iref{expr.prim.lambda.closure}.
74487455
\end{itemize}
74497456
\end{note}
74507457

0 commit comments

Comments
 (0)