jarro2783 / cxxopts

Lightweight C++ command line option parser
MIT License
4.16k stars 582 forks source link

C++17 std::variant without `-frtti` #434

Open jwinarske opened 3 months ago

jwinarske commented 3 months ago

For C++17 it would be a good option to use std::variant and not depend on RTTI

jarro2783 commented 3 months ago

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 3 months ago

Any type. See https://en.cppreference.com/w/cpp/utility/variant