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

Remove redundant constraint in [class.static.data] #604

Merged
merged 1 commit into from Mar 20, 2016

Conversation

Arcoth
Copy link
Contributor

@Arcoth Arcoth commented Jan 19, 2016

The fact that local classes shall not have static data members is already stated in [class.local]/4 with the exact same wording.

@zygoloid
Copy link
Member

zygoloid commented Mar 7, 2016

Seems like we would benefit from more massaging here. The previous sentence "static data members of a class in namespace scope have the linkage of that class (3.5)" makes one wonder what happens for static data members of classes in other scopes. Again, that's normatively covered by wording elsewhere.

Maybe we can make this whole paragraph a note, and add a cross-reference from the second sentence to [class.local] instead? (Or maybe delete the whole paragraph.)

@Arcoth
Copy link
Contributor Author

Arcoth commented Mar 19, 2016

I agree; a note seems appropriate. See the new commit.

@tkoeppe
Copy link
Contributor

tkoeppe commented Mar 19, 2016

Squash, rebase and push?

.. and change the index reference of restrictions on local static data members accordingly.
@Arcoth
Copy link
Contributor Author

Arcoth commented Mar 20, 2016

@tkoeppe Good call.

@tkoeppe
Copy link
Contributor

tkoeppe commented Mar 20, 2016

@zygoloid PTAL

zygoloid added a commit that referenced this pull request Mar 20, 2016
[class.static.data] Convert redundant constraints to a note.
@zygoloid zygoloid merged commit 3adc109 into cplusplus:master Mar 20, 2016
@Arcoth Arcoth deleted the patch-1 branch March 20, 2016 09:41
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