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.
https://www.avast.com/antivirus

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net