Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immediate understanding of non-type templ. param. #7452

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@
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}
non-type \grammarterm{template-parameter}\iref{temp.param}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this directly refers to a first-level decomposition of the grammar non-terminal template-parameter, I think it's actually clearer without "non-type" (which suggests a prior semantic interpretation instead of a syntax-based grammar match).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I was also considering this part as a minor point in Issue #7453,
even because parameter-declaration is not possible in case of a type-parameter.

So, I fully trust your opinion to reject it.

can be declared using
a \grammarterm{placeholder-type-specifier} of the form
\opt{\grammarterm{type-constraint}} \keyword{auto}.
Expand All @@ -1789,7 +1789,7 @@
of the
function declaration,
\grammarterm{lambda-expression}, or
\grammarterm{template-parameter}, respectively.
non-type \grammarterm{template-parameter}, respectively.
\begin{note}
Having a generic parameter type placeholder
signifies that the function is
Expand Down