C++17 std::variant without `-frtti`
Opened this issue · 2 comments
jwinarske commented
For C++17 it would be a good option to use std::variant and not depend on RTTI
jarro2783 commented
What types would be in the variant? In general the user can use arbitrary types, so there is no fixed list that would work for everyone.
jwinarske commented
Any type. See https://en.cppreference.com/w/cpp/utility/variant