[Boost-bugs] [Boost C++ Libraries] #9936: multiprecision assign does not deal addequately with sign

Subject: [Boost-bugs] [Boost C++ Libraries] #9936: multiprecision assign does not deal addequately with sign
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-22 09:48:14


#9936: multiprecision assign does not deal addequately with sign
------------------------+------------------------------
 Reporter: cerquide@… | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.55.0
 Severity: Problem | Keywords:
------------------------+------------------------------
 The following code provides the output:

 0

 -0

 Looks like the positive sign is not set after assign is called.

 {{{
 #include <iostream>
 #include <boost/multiprecision/cpp_int.hpp>

 boost::multiprecision::int128_t x("0");

 int main(int argc , char **argv) {
   std::cout << x << std::endl;
   x = -1;
   x.assign("0");
   std::cout << x << std::endl;
 }
 }}}

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