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 members are introduced by a member-declaration, not member-de… #1175

Closed
wants to merge 1 commit into from
Closed

Class members are introduced by a member-declaration, not member-de… #1175

wants to merge 1 commit into from

Conversation

jabelloc
Copy link

@jabelloc jabelloc commented Dec 7, 2016

…clarator.

@jwakely
Copy link
Member

jwakely commented Dec 7, 2016

This seems incorrect. A member-declaration can also introduce typedef names and other things which are non-functions. Your change would mean they are considered data members.

@jabelloc
Copy link
Author

jabelloc commented Dec 7, 2016

@jwakely I didn't say: "class data members are introduced by a member-declaration". What I said was: class members are introduced by member-declarations. typedef names are not data members but they are class members.

But that's not relevant here. The important point is that you cannot introduce a class data member with a member-declarator. That doesn't make sense. You've got to use a member-declaration to introduce a data member into a class.

@jabelloc
Copy link
Author

jabelloc commented Dec 7, 2016

@jwakely I take back what I said earlier. You're right, and I was wrong. Class data members have to be introduced into a class with a member-declarator.

@jabelloc jabelloc closed this Dec 7, 2016
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

2 participants