3 ms·
I of course do not own a copy of the expensive ISO document, however, in the draft: 11.5.1 [class.union.general] [Note 1: One special guarantee is made in ord
by tialaramex 4y ago
I of course do not own a copy of the expensive ISO document, however, in the draft:
11.5.1 [class.union.general]
[Note 1: One special guarantee is made in order to simplify the use of unions: If a standard-layout union contains several standard-layout structs that share a common initial sequence ([class.mem]), and if a non-static data member of an object of this standard-layout union type is active and is one of the standard-layout structs, it is permitted to inspect the common initial sequence of any of the standard-layout struct members; see [class.mem].
— end note]