Skip to content

Commit 02e4183

Browse files
committed
[dcl.type.elab] Clarify that there is no expected correlation between
using 'class' or 'struct' in a class definition and using the same keyword in an elaborated-type-specifier.
1 parent d26d3bd commit 02e4183

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/declarations.tex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,9 +1534,7 @@
15341534
used to refer to an enumeration\iref{dcl.enum}, the \tcode{union}
15351535
\grammarterm{class-key} shall be used to refer to a union\iref{class.union},
15361536
and either the \tcode{class} or \tcode{struct}
1537-
\grammarterm{class-key} shall be used to refer to a class\iref{class.pre}
1538-
declared using the \tcode{class} or \tcode{struct}
1539-
\grammarterm{class-key}.
1537+
\grammarterm{class-key} shall be used to refer to a non-union class\iref{class.pre}.
15401538
\begin{example}
15411539
\begin{codeblock}
15421540
enum class E { a, b };

0 commit comments

Comments
 (0)