|
Boost Users : |
Subject: Re: [Boost-users] [boost][multiprecision] compile error with gcc 4.8.4
From: John Maddock (jz.maddock_at_[hidden])
Date: 2016-08-18 12:14:06
On 18/08/2016 15:05, Rob Conde wrote:
>
> Any luck? It would be great if there was a fix in boost 1.62.
>
Fixed in
https://github.com/boostorg/multiprecision/commit/339818c0180d0719852b3e648b8d76f2ba02e32d
If the tests cycle OK, I'll try to get this into 1.62, but it's tight now.
John.
>
> Thanks,
>
> Rob
>
> ------------------------------------------------------------------------
> *From:* Boost-users <boost-users-bounces_at_[hidden]> on behalf of
> John Maddock <jz.maddock_at_[hidden]>
> *Sent:* Tuesday, August 16, 2016 7:11:07 AM
> *To:* boost-users_at_[hidden]
> *Subject:* Re: [Boost-users] [boost][multiprecision] compile error
> with gcc 4.8.4
>
>
> On 16/08/2016 01:59, Rob Conde wrote:
> > #include <boost/multiprecision/cpp_int.hpp>
> > #include <boost/multiprecision/cpp_bin_float.hpp>
> >
> > typedef boost::multiprecision::int128_t int128_t;
> > typedef boost::multiprecision::cpp_bin_float_quad float128_t;
> >
> > int main()
> > {
> > int128_t intVal;
> > float128_t floatVal(intVal.convert_to<float128_t>());
> > return 0;
> > }
>
> That should work, as should:
>
> float128_t f(intVal);
>
> However, while both of these do work with msvc, they fail with GCC, so
> there is a bug (or 2) somewhere. I'll investigate later.
>
> John.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
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