Skip to content

Commit 383cf7c

Browse files
[expr.prim.lambda.closure] Fix sentence re: immediate function nature
... by adjusting the cross-reference to point to [expr.const], where immediate function is defined, and hinting at the possibility of being an immediate function by being immediate-escalating.
1 parent 35a6fb8 commit 383cf7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/expressions.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2345,9 +2345,10 @@
23452345
\grammarterm{parameter-declaration-clause}
23462346
is followed by \keyword{constexpr} or \keyword{consteval}, or
23472347
it is constexpr-suitable\iref{dcl.constexpr}.
2348-
It is an immediate function\iref{dcl.constexpr}
2348+
It is an immediate function\iref{expr.const}
23492349
if the corresponding \grammarterm{lambda-expression}{'s}
2350-
\grammarterm{parameter-declaration-clause} is followed by \keyword{consteval}.
2350+
\grammarterm{parameter-declaration-clause} is followed by \keyword{consteval};
2351+
otherwise, it is an immediate-escalating function.
23512352
\begin{example}
23522353
\begin{codeblock}
23532354
auto ID = [](auto a) { return a; };

0 commit comments

Comments
 (0)