[Boost-bugs] [Boost C++ Libraries] #8741: Can't shift left more than 31 bits with the <<= operator for number/cpp_int_backend.

Subject: [Boost-bugs] [Boost C++ Libraries] #8741: Can't shift left more than 31 bits with the <<= operator for number/cpp_int_backend.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-27 16:19:33


#8741: Can't shift left more than 31 bits with the <<= operator for
number/cpp_int_backend.
----------------------------------+----------------------------
 Reporter: neal.p.smith@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: multiprecision shift |
----------------------------------+----------------------------
 Can't shift left more than 31 bits with the <<= operator for
 number/cpp_int_backend.

 number<cpp_int_backend<90, 90, unsigned_magnitude, unchecked, void>>
 testNum("0x00BBBBCCCCDDDDEEEEFFFF");

 // testNum remains unchanged
 testNum <<= 32;

 // testNum shifts left one bit.
 testNum <<= 33;

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8741>
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:13 UTC