Skip to content

Conversation

hewillk
Copy link
Contributor

@hewillk hewillk commented Dec 15, 2022

to make it consistent with the declaration.

@jensmaurer
Copy link
Member

jensmaurer commented Dec 16, 2022

Repeated default template arguments are ill-formed.

@hewillk
Copy link
Contributor Author

hewillk commented Dec 16, 2022

Repeated default template parameters are ill-formed.

See #4836.

@jwakely
Copy link
Member

jwakely commented Dec 16, 2022

Identifiers with kebab-case are ill-formed too, but we do that to make things easier to read 🙂

Nobody expects to be able to just copy & paste classes from the standard and use them as-is, so we can repeat the defaults if that makes the specification more clear. And I think it does, because often the synopsis is huge and defaults buried there are not obvious.

Copy link
Member

@jensmaurer jensmaurer left a comment

Choose a reason for hiding this comment

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

Ok, looks good.

@tkoeppe tkoeppe merged commit 405b46f into cplusplus:main Dec 16, 2022
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.

4 participants