Skip to content

Commit 85f634a

Browse files
jwakelyzygoloid
authored andcommitted
[dcl.type.elab] Mix struct/class in example
Extend the example to show that the choice of 'class' or 'struct' in an elaborated-type-name referring to a class is not significant.
1 parent 9389f77 commit 85f634a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎source/declarations.tex‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,8 @@
14951495
\begin{codeblock}
14961496
enum class E { a, b };
14971497
enum E x = E::a; // OK
1498+
struct S { } s;
1499+
class S* p = &s; // OK
14981500
\end{codeblock}
14991501
\end{example}
15001502

0 commit comments

Comments
 (0)