3 ms·C++17 has sum types?by wtetzner 6y agoC++17 has sum types?pklausler 6y agoYou bet; see std::variant<>. Great for closed-world polymorphism with compilation-time checking of completeness!