3 ms·
In my C++ all members of a union are always active.
by MountainTheme12 8mo ago
In my C++ all members of a union are always active.
- ux266478 8mo agoIt's the only way to live. Strict aliasing rule? Always disabled.
- anematode 8mo agoRight? The cited use case is undefined behavior. Actually I can't think of a single realistic use case for this; despite the constant trumpeting of C++ folks on how constexpr will save C++, constant expressions are just too limited for this to matter.