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

Conversation

mrussoLuxoft
Copy link
Contributor

@mrussoLuxoft mrussoLuxoft commented Nov 27, 2024

This PR is related to the Issue #7453 proposing multiple changes to clarify the text in [dcl.spec.auto.general]
However, a PR has been created for each specific change.

In [dcl.spec.auto.general]-p2, both occurrences of template-parameter may be improved as non-type template-parameter.

@@ -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.

@jensmaurer jensmaurer closed this Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants