Opened 10 years ago
Closed 10 years ago
#8145 closed Bugs (fixed)
multiprecision, negative integer zero
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | multiprecision |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
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; }
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Confirmed, many thanks for keeping me on my toes with these!!