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

[class.bit] talks about round-tripping enumerator values, should apply to all values of the enumeration #2380

Closed
zygoloid opened this issue Nov 5, 2018 · 0 comments
Assignees

Comments

@zygoloid
Copy link
Member

zygoloid commented Nov 5, 2018

In [class.bit] we find this:

If the value of an enumerator is stored into a bit-field of the same enumeration type and the number of bits in the bit-field is large enough to hold all the values of that enumeration type (9.6 [dcl.enum]), the original enumerator value and the value of the bit-field shall compare equal

This should apply to all values of the enumeration, not only enumerators. This is normatively implied by the wording in [dcl.enum]p8, and CWG are happy to have this handled editorially.

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

No branches or pull requests

2 participants