|
Boost : |
Subject: Re: [boost] [math] Missing constexpr statement in MPFR bindings
From: John Maddock (jz.maddock_at_[hidden])
Date: 2016-02-05 13:11:35
On 05/02/2016 08:45, Claas H. Koehler wrote:
> Hi,
>
> I encountered a compiler error using gcc-5.0 with the math constants in boost 1.60.0 due to a
> different exception specification of math::tools::digits():
>
> The prototype defined in math/tools/precision.hpp has a BOOST_NOEXCEPT specifier, while the
> implementation in math/bindings/mpfr.hpp does not have the respective specification.
>
> Adding BOOST_NOEXCEPT in math/bindings/mpfr.hpp solves the problem, i.e. compilation succeeds. I was
> wondering whether this is a bug or whether the error can be circumvented in another way.
Looks like I've broken mpfr_class support (use of
mpfr+Boost.Multiprecision works just fine though).
Fixed in
https://github.com/boostorg/math/commit/7cecd8ddf4ac817f0e08a0853c43fc31bc4988cd
HTH, John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk