Skip to content

Commit

Permalink
[class.union] Only standard-layout unions are pointer-interconvertible
Browse files Browse the repository at this point in the history
with their members.

Fixes #1624.
  • Loading branch information
jensmaurer authored and zygoloid committed Jul 15, 2017
1 parent 921ef04 commit 0611331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/classes.tex
Expand Up @@ -1526,9 +1526,9 @@
of its non-static data members. Each non-static data member is allocated
as if it were the sole member of a struct.
\begin{note}
A union object and its non-static data members are
A standard-layout union object and its non-static data members are
pointer-interconvertible~(\ref{basic.compound}, \ref{expr.static.cast}).
As a consequence, all non-static data members of a
As a consequence, all non-static data members of such a
union object have the same address.
\end{note}

Expand Down

0 comments on commit 0611331

Please sign in to comment.