Class declaration

Classes are user-defined types, defined by class-specifier, which appears in decl-specifier-seq of the declaration syntax.

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
CWG 1693C++98member declarations could not be emptyempty declaration allowed
CWG 1930C++98member-declarator-list could be empty when decl-specifier-seqcontains a storage class specifier or cv qualifierthe list must not be empty
CWG 2890C++98it was unclear where the members of nested classes can be declaredmade clear

# See also