Boost logo

Boost Users :

Subject: [Boost-users] boost variant is not a literal type
From: Robert Ramey (ramey_at_[hidden])
Date: 2016-01-06 15:52:28


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net