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.data] unusual wording #392

Closed
cpplearner opened this issue Nov 6, 2014 · 3 comments
Closed

[class.static.data] unusual wording #392

cpplearner opened this issue Nov 6, 2014 · 3 comments

Comments

@cpplearner
Copy link
Contributor

9.4.2/2 says "The declaration of a static data member in its class definition is not a definition and may be of an incomplete type other than cv-qualified void."
Why not simply say "[...] and may be of an incomplete type other than cv void." or "[...] and may be of an incomplete object type."?

@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 11, 2014

Are you asking to remove the part that says that the declaration is not a definition? That seems like a pretty important statement.

@zygoloid
Copy link
Member

s/cv-qualified/cv/ here seems like a good idea; the current wording can be read as implying:

struct S {
  static const void x; // error, cv-qualified void
  static void y; // ok, cv-unqualified void
};

... which is not the intent.

@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 13, 2014

Yes, that makes sense. It seems that qe usually spell this as \cvqual{cv} \tcode{void}; pull request coming.

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

4 participants