Remix.run Logo
▲ Panzerschrek 3 hours ago

Typical C approach. In C++ this should be done with std::variant instead. It has the exact same binary layout, but is type-safe (compared to union usage).