Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

C++17 has sum types?


You bet; see std::variant<>. Great for closed-world polymorphism with compilation-time checking of completeness!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: