Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11165: using cpp_int and other integer types gives unknown type name 'cpp_int' error when compiled on Xcode 6 on a macbook.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-04 08:00:07
#11165: using cpp_int and other integer types gives unknown type name 'cpp_int'
error when compiled on Xcode 6 on a macbook.
-------------------------------+----------------------------
Reporter: yavuz@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------------
Comment (by johnmaddock):
I think you need to post a test case if you want us to investigate that
further. One simple thing you can try first is to replace uint128_t with
checked_uint128_t, and if it throws an exception somewhere then you know
you have numeric overflow in the calculation.
With respect to one of your earlier questions, large numeric literals are
possible in C++11 mode, see:
http://www.boost.org/doc/libs/1_57_0/libs/multiprecision/doc/html/boost_multiprecision/tut/lits.html
And finally.... note that GCC (though not other compilers) has a built-in
{{{__int128}}} type which will be a little faster than
{{{boost::multiprecision::uint128_t}}} (uint128_t will actually be a thin
wrapper around {{{unsigned __int128}}} on GCC).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11165#comment:8> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC