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.inc] forgets "nonstatic" #346

Closed
potswa opened this issue Jul 29, 2014 · 1 comment
Closed

[over.inc] forgets "nonstatic" #346

potswa opened this issue Jul 29, 2014 · 1 comment

Comments

@potswa
Copy link

potswa commented Jul 29, 2014

The other parts of [over] require nonstatic member functions, but [over.inc] omits the word nonstatic which could be interpreted as meaning that static members might provide operator++ and operator--.

@zygoloid zygoloid added cwg and removed cwg labels Aug 30, 2014
@zygoloid
Copy link
Member

The standard is already normatively correct; [over.oper]p6 makes a static member function operator++ or operator-- ill-formed. => Adding 'non-static' here is editorial and seems reasonable.

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