3 ms·If the union is untagged, how can it be determined (at runtime) that you've accessed the wrong field?by abbeyj 4y agoIf the union is untagged, how can it be determined (at runtime) that you've accessed the wrong field?Spex_guy 4y agoThe compiler adds a tag in debug modes, but not in release modes.a_t48 4y agoNeat, that's somewhere in between a `union` and a `std::variant`. You could build your own, but it's cool that it's a first class member of the language.