Skip to content

Commit f8c4763

Browse files
Dawn Perchikzygoloid
authored andcommitted
CWG2287 Pointer-interconvertibility in non-standard-layout unions
Also revert "[class.union] Only standard-layout unions are pointer-interconvertible" (0611331) which editorially resolved the same confilct between the non-normative and normative wording in the opposite direction, by changing the non-normative wording to match the normative wording.
1 parent 784e7db commit f8c4763

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/basic.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4064,7 +4064,7 @@
40644064
\item
40654065
they are the same object, or
40664066
\item
4067-
one is a standard-layout union object and
4067+
one is a union object and
40684068
the other is a non-static data member of that object~(\ref{class.union}), or
40694069
\item
40704070
one is a standard-layout class object and

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 standard-layout union object and its non-static data members are
1529+
A 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 such a
1531+
As a consequence, all non-static data members of a
15321532
union object have the same address.
15331533
\end{note}
15341534

0 commit comments

Comments
 (0)