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

[over.oper] falsely claims operator= can be overloaded for enumerations #3608

Closed
zygoloid opened this issue Jan 6, 2020 · 0 comments · Fixed by #3622
Closed

[over.oper] falsely claims operator= can be overloaded for enumerations #3608

zygoloid opened this issue Jan 6, 2020 · 0 comments · Fixed by #3622
Assignees

Comments

@zygoloid
Copy link
Member

zygoloid commented Jan 6, 2020

[over.oper]p7 says, in part:

The meaning of the operators =, (unary) &, and , (comma), predefined for each type, can be changed for specific class and enumeration types by defining operator functions that implement these operators.

But this is untrue: operator= cannot be overloaded for an enumeration type, per [over.ass]p1.

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 a pull request may close this issue.

2 participants