Boost logo

Boost Users :

Subject: Re: [Boost-users] [multiprecision] Compiler Warnings
From: Michael Olea (oleaj_at_[hidden])
Date: 2013-07-23 12:46:44


On Jun 10, 2013, at 7:43 AM, John Maddock <john_at_[hidden]> wrote:

>> I'm getting compiler warnings for narrowing conversions when I write a cpp_int to a stream.
>
> My bad. The "int pos" should be "std::string::difference_type pos" in several places.
>
> Will fix shortly,

Thanks for the fixes. I just downloaded 1_54_0 and I'm still getting one warning from cpp_int.hpp line 1610:

  unsigned n = result.find_first_not_of('0');

Implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int'

This is compiled on OS X 10.8, with clang:

Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.4.0

With options:

-arch x86_64 -std=gnu++11 -stdlib=libc++

among others.

Thanks again for this way-cool library.

-- Michael.



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