Skip to content

Commit 0611331

Browse files
jensmaurerzygoloid
authored andcommitted
[class.union] Only standard-layout unions are pointer-interconvertible
with their members. Fixes #1624.
1 parent 921ef04 commit 0611331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/classes.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,9 +1526,9 @@
15261526
of its non-static data members. Each non-static data member is allocated
15271527
as if it were the sole member of a struct.
15281528
\begin{note}
1529-
A union object and its non-static data members are
1529+
A standard-layout union object and its non-static data members are
15301530
pointer-interconvertible~(\ref{basic.compound}, \ref{expr.static.cast}).
1531-
As a consequence, all non-static data members of a
1531+
As a consequence, all non-static data members of such a
15321532
union object have the same address.
15331533
\end{note}
15341534

0 commit comments

Comments
 (0)