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.static.mfct] Strike redundant normative wording #3965

Merged
merged 1 commit into from Oct 18, 2020

Conversation

sdkrystian
Copy link
Contributor

@sdkrystian sdkrystian commented Apr 29, 2020

All of the normative wording here is redundant: the overloading rule is specified in [over.load], the cv-qualifier-seq rule in [dcl.fct], and the virtual rule in [dcl.fct.spec].

I added the trailing requires-clause rule for overloading, and also changed "shall" to "cannot" since it shouldn't be used within informative wording.

It seems that we ran out of normative wording in this sub clause with this change, so perhaps more drastic measures should be taken (eventually).

@zygoloid zygoloid added this to the C++23 milestone Sep 18, 2020
@zygoloid zygoloid merged commit c025a57 into cplusplus:master Oct 18, 2020
A static member function cannot be declared \tcode{virtual}\iref{dcl.fct.spec}.
There cannot be a static and a non-static member function with
the same name, parameter-type-list, and trailing \grammarterm{requires-clause}\iref{over.load}.
A static member function cannot not be declared \tcode{const},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, this has a "cannot not" bad phrasing. This has been merged already; could you post a follow-up pull request, please?

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

3 participants