Skip to content

Commit

Permalink
[dcl.spec.auto.general]-p2: wording on param. type
Browse files Browse the repository at this point in the history
Avoid incorrect sentence parsing option on parameter type.
Text may be ambiguous in the sense that it may be interpreted both as the type of any of three things (incorrect) or the type of a parameter of any of three things (correct).
Despite the former interpretation does not make sense as a lambda expression has never an explicit type, it would still be useful to avoid ambiguity in sentence parsing.

Signed-off-by: Mauro Russo <[email protected]>
  • Loading branch information
mrussoLuxoft committed Nov 28, 2024
1 parent d017ce4 commit 63cef78
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1771,9 +1771,11 @@

\pnum
The type of a \grammarterm{parameter-declaration} of a
function declaration\iref{dcl.fct},
\grammarterm{lambda-expression}\iref{expr.prim.lambda}, or
\grammarterm{template-parameter}\iref{temp.param}
\begin{itemize}
\item function declaration\iref{dcl.fct},
\item \grammarterm{lambda-expression}\iref{expr.prim.lambda},
\item \grammarterm{template-parameter}\iref{temp.param}
\end{itemize}
can be declared using
a \grammarterm{placeholder-type-specifier} of the form
\opt{\grammarterm{type-constraint}} \keyword{auto}.
Expand Down

0 comments on commit 63cef78

Please sign in to comment.