id summary reporter owner description type status milestone component version severity resolution keywords cc 12766 Boost Units: Quantities in Constexpr Functions a.huebl@… Jürgen Hunold "I would like to use boost quantities in C++11 constexpr functions (and later C++14 constexpr functions). Unfurtunately, I can not define a simple quantity as constexpr: {{{ #include #include using namespace boost::units; constexpr quantity< si::length, double > dtestExt{ 0.2e-6 }; // or constexpr quantity< si::length, double > dtestExt = 0.2e-6; }}} g++ -std=c++11 (4.9.4): {{{ error: the type ‘ const boost::units::quantity< boost::units::unit< boost::units::list< boost::units::dim< boost::units::length_base_dimension, boost::units::static_rational<1l> >, boost::units::dimensionless_type >, boost::units::homogeneous_system< boost::units::list< boost::units::si::meter_base_unit, boost::units::list > >, boost::units::list > > > > > > > > > > >’ of constexpr variable ‘dtestExt’ is not literal }}} " Feature Requests new To Be Determined units Boost 1.62.0 Problem units literal constexpr