Boost C++ Libraries: Ticket #9936: multiprecision assign does not deal addequately with sign https://svn.boost.org/trac10/ticket/9936 <p> The following code provides the output: </p> <p> 0 </p> <p> -0 </p> <p> Looks like the positive sign is not set after assign is called. </p> <pre class="wiki">#include &lt;iostream&gt; #include &lt;boost/multiprecision/cpp_int.hpp&gt; boost::multiprecision::int128_t x("0"); int main(int argc , char **argv) { std::cout &lt;&lt; x &lt;&lt; std::endl; x = -1; x.assign("0"); std::cout &lt;&lt; x &lt;&lt; std::endl; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9936 Trac 1.4.3 viboes Wed, 23 Apr 2014 11:01:31 GMT component changed; owner set https://svn.boost.org/trac10/ticket/9936#comment:1 https://svn.boost.org/trac10/ticket/9936#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">multiprecision</span> </li> </ul> Ticket John Maddock Wed, 23 Apr 2014 17:51:22 GMT <link>https://svn.boost.org/trac10/ticket/9936#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9936#comment:2</guid> <description> <p> I'm unable to reproduce by either current Git develop or Boost-1.55, which compiler/platform is this? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Wed, 23 Apr 2014 18:01:07 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9936#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9936#comment:3</guid> <description> <p> Never mind, I've reproduced, testing fix now. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Thu, 24 Apr 2014 08:36:23 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9936#comment:4 https://svn.boost.org/trac10/ticket/9936#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in Git, see: <a class="ext-link" href="https://github.com/boostorg/multiprecision/commit/5a5fb6fbe054a5a007e2c17e0f0ab597e9cc81e6"><span class="icon">​</span>https://github.com/boostorg/multiprecision/commit/5a5fb6fbe054a5a007e2c17e0f0ab597e9cc81e6</a> </p> Ticket