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

US091 11.10.01 p04.1 Strong structural equality for enums #90

Closed
wg21bot opened this issue Oct 23, 2019 · 3 comments
Closed

US091 11.10.01 p04.1 Strong structural equality for enums #90

wg21bot opened this issue Oct 23, 2019 · 3 comments
Labels
EWG Evolution rejected No consensus for a change.
Milestone

Comments

@wg21bot
Copy link
Collaborator

wg21bot commented Oct 23, 2019

A user-defined operator<=> can affect whether an enumeration type has strong structural equality.

Proposed change:
Specify that all enumeration types have that property.

@jfbastien
Copy link
Collaborator

jfbastien commented Oct 27, 2019

From #112 (which I closed as duplicate):

The == operator is inappropriate for comparing non-type template arguments of enumeration type, since it may be overloaded for them.

Proposed change:
Compare the values of the underlying type.

@jfbastien
Copy link
Collaborator

jfbastien commented Nov 4, 2019

EWG Monday: http://wiki.edg.com/bin/view/Wg21belfast/US091

Does EWG want to consider this for C++20

F A
11 8

No consensus for change.

@jensmaurer
Copy link
Member

Rejected. There was no consensus to adopt this change.

@jensmaurer jensmaurer added the rejected No consensus for a change. label Nov 7, 2019
@jensmaurer jensmaurer added this to the CD C++20 milestone Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EWG Evolution rejected No consensus for a change.
Projects
None yet
Development

No branches or pull requests

3 participants