Re:Learning that you can use unions in C for grouping things...
by midjji on Sunday August 01, 2021 @03:42PM
(#28029207)
Constexpr unions is the sane/safe way to use them. Its great, because accessing a member which isnt the last one written, constexpr will explicitly prevent it compile time. Whereas all other examples here are explicitly undefined behaviour!
[ Parent
| on HN ]
There are no comments on this comment yet.