Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost][multiprecision] compile error with gcc 4.8.4
From: John Maddock (jz.maddock_at_[hidden])
Date: 2016-09-17 12:58:10


> Can you clarify your approach going forward? When this compiles (other
> versions of gcc, visual studio) it works as intended. It's not a huge
> deal for me whether this is fixed for 1.62, but I definitely don't
> want it to be expressly forbidden going forward.
>

The float->int conversion fails for me with as expected with msvc and
current gcc versions. Of course the error message should be a lot better.

The ideal solution would be to overload iround/itrunc for multiprecision
integer target types, but of course that's not possible. I guess an
explicit cast is just about acceptable, but let me think about this.

John.


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