Boost logo

Boost Users :

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.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at