Namespaces
Variants
Actions

Talk:cpp/language/class

From cppreference.com

The friend declarations really belong in cpp/language/friend, not here. --- Undeterminant 19:03, 7 March 2012 (PST)

It's only mentioned here to document what can go in the class body. Actual documentation would be in cpp/language/friend --Bazzy 02:53, 8 March 2012 (PST)

No information about rvalue ref for *this --Balki (talk) 11:21, 6 September 2013 (PDT)

are you referring to the ref-qualifiers for member functions? I'm split between explaining them in cpp/language/overload_resolution and cpp/language/member_functions (it's currently in both with member_functions holding the main chunk of text) --Cubbi (talk) 13:00, 6 September 2013 (PDT)


I think in this article sould the difference between class and struct be mentiond. The only difference is the default access specifier, or is there more?

You're right, this is a good place to enumerate the differences. Added. --Cubbi (talk) 04:13, 23 January 2014 (PST)

[edit] Give more importance to ' : ' operator

classes and inheritance/base relations are important in the concept itself... Moreover, the notation only appears one time in the article! For this reason I recommend that edit the class specifier in this manner:

 class-key attr class-head-name : base-clause { member-specification } 

Pst: Why do not use BNF notation??

as it says right below, "(see derived class)" -- that article goes into the full detail. I suppose the lead sentence from that page ("The base-clause consists of the character : followed by a comma-separated list of one or more base-specifiers.") could be repeated here if that helps. Editing this page's grammar to separate : from base-clause would mean we're differing from the standard w.r.t what base-clause is, and the next editor would edit it back. --Cubbi (talk) 14:19, 4 December 2017 (PST)
...or I guess we can do that. --Cubbi (talk) 06:22, 5 December 2017 (PST)
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=Talk:cpp/language/class&oldid=97302"

AltStyle によって変換されたページ (->オリジナル) /