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

[temp.param] Remove definitions in footnote and fix wording referring to non-type template parameters #3917

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sdkrystian
Copy link
Contributor

@sdkrystian sdkrystian commented Apr 4, 2020

Removes some more of those pesky definitions in non-normative text, and has a small drive-by edit to [temp.param] p2 (a parameter-declaration does not declare a type except for certain cases with elaborated-type-specifiers where it kind of does (but not really), but that does not apply in a template-parameter either way).

Also, what is stated in the footnote should probably have corresponding normative wording, since we don't currently have any.

are used to refer to non-type, non-template parameters and arguments.}
\grammarterm{parameter-declaration}.
non-type \grammarterm{template-parameter} and
non-type \grammarterm{template-argument}
Copy link
Member

Choose a reason for hiding this comment

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

I actually think those definitions should be normative and indexed; they are used quite a lot and we shouldn't rely on the "since" rationale offered here for readers to understand a fairly basic term.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we do non-type template-parameter like we do for trailing requires-clause, or non-type template parameter? The former seems to be used more often than the latter.

@@ -277,17 +277,16 @@
\tcode{typename}
followed by a
\grammarterm{qualified-id}
denotes the type in a non-type%
denotes the type in a \grammarterm{parameter-declaration}.%
Copy link
Member

Choose a reason for hiding this comment

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

We now have a footnote explaining what we mean by "non-type" attached to wording that doesn't say "non-type". That doesn't seem ideal. But in any case the disambiguation rule for template<class T> seems like a very strange place to be defining "non-type".

@jensmaurer jensmaurer added the changes requested Changes to the wording or approach have been requested and not yet applied. label Sep 19, 2020
@wg21bot wg21bot added the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Changes to the wording or approach have been requested and not yet applied. needs rebase The pull request needs a git rebase to resolve merge conflicts.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants