using boost math constants in constexpr
Is is possible to use boost math constants in constexpr? For example, the following line: static constexpr double SEC3 = static_cast<double>(45)/180*boost::math::double_constants::pi; gives me error Error - constexpr variable 'SEC3' must be initialized by a constant expression But if I replace the boost code with simple M_PI, it works fine. I suspect this may be the reason. Coliru gives this error: clang++ -std=c++1y -O2 -Wall -pedantic -pthread main.cpp && ./a.out /usr/local/include/boost/math/constants/constants.hpp:248:52: note: expanded from macro 'BOOST_DEFINE_MATH_CONSTANT' namespace