▲ | grandempire a day ago | |||||||||||||
That’s for C++. And how is std::variant implemented? | ||||||||||||||
▲ | LowLevelMahn a day ago | parent [-] | |||||||||||||
not using a union: https://ojdip.net/2013/10/implementing-a-variant-type-in-cpp... because the union can't be extended with variadic template types | ||||||||||||||
|