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

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: