Subject: [Boost-bugs] [Boost C++ Libraries] #8145: multiprecision, negative integer zero
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-22 21:05:04
#8145: multiprecision, negative integer zero
--------------------------------------------------+-------------------------
Reporter: Stepan Podoskin <stepik-777@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
Version: Boost Development Trunk | Severity: Problem
Keywords: |
--------------------------------------------------+-------------------------
Here is me again :)
Introduced in revision 83080:
{{{
#include <iostream>
#include <boost/multiprecision/cpp_int.hpp>
using boost::multiprecision::cpp_int;
int main()
{
cpp_int c = -1 + cpp_int(0) + 1;
if( c != 0 )
std::cout << c; // c = -0
return 0;
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8145> 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:12 UTC