6 Jan
2016
6 Jan
'16
8:52 p.m.
I want to use Boost.Variant constexpr function. In order to do this it has to be a literal type - which apparently it isn't. The rule for being a literal type are summarized here: http://en.cppreference.com/w/cpp/concept/LiteralType a boost::variant isn't default constructable so it fails to qualify. Has anyone else had this problem before and managed to solve it in a convenient way? Robert Ramey