Am 02.02.19 um 19:15 schrieb John Maddock via Boost-users:
This is not constexpr for float128_t and the compiler generates a function call. :-(
This works fine for me:
#include
#include int main() { using boost::float128_t;
constexpr float128_t pi = boost::math::constants::pi
(); return 0; }
That's exactly my problem.
namespace std
{
// declare missing log2, cannot say constexpr: compilererror
inline float128_t log2(const float128_t& arg) noexcept
{
return log2q(arg);
}
}
// also not constexpr
inline float128_t myfunc(const float128_t& arg) noexcept
{
// log2_e not available
// constexpr float128_t factor =
boost::math::constants::log2_e