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

[dcl.enum] Enumerators don't have "initializers" #5869

Merged
merged 1 commit into from Nov 8, 2023

Conversation

Quuxplusone
Copy link
Contributor

I might just be missing something obvious here, but the current wording of dcl.enum/2 seems to use the grammar production initializer when it means constant-expression. The grammar production initializer is defined as

initializer:
    brace-or-equal-initializer
    '(' expression-list ')'

I could have just replaced "an initializer" with "a constant-expression". But, looking at the preceding sentence, I think "with =" and "without =" are the perfect way to describe what we're talking about here. So this change is bigger (but still, IMHO, editorial).

source/declarations.tex Outdated Show resolved Hide resolved
@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 8, 2022

@jensmaurer I'd like some core(ish) pair of eyes if possible.

@tkoeppe tkoeppe added the cwg Issue must be reviewed by CWG. label Dec 16, 2022
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.

I think the rewording is an improvement.

source/declarations.tex Show resolved Hide resolved
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.

@tkoeppe , looks good to me.

@Quuxplusone
Copy link
Contributor Author

@jensmaurer this is both "approved" and labeled [cwg]; does that mean it's awaiting CWG review, or could be merged, or what? No new urgency; I just noticed it's been sitting around a while.

@jensmaurer jensmaurer removed the cwg Issue must be reviewed by CWG. label Oct 15, 2023
@jensmaurer
Copy link
Member

@tkoeppe, I don't think we need CWG approval for this; it seems fairly straightforward in a low-density part of the specification.

Can this go ahead?

@tkoeppe tkoeppe merged commit e9fb04e into cplusplus:main Nov 8, 2023
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.

None yet

4 participants