$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] generalize boost macros
From: John Maddock (jz.maddock_at_[hidden])
Date: 2019-02-02 18:15:31
> This is not constexpr for float128_t and the compiler generates a
> function call. :-(
This works fine for me:
#include <boost/cstdfloat.hpp>
#include <boost/math/constants/constants.hpp>
int main()
{
  using boost::float128_t;
  constexpr float128_t pi = boost::math::constants::pi<float128_t>();
  return 0;
}
--- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus