Opened 10 years ago
Closed 10 years ago
#8176 closed Bugs (fixed)
multiprecision, correct code with cpp_rational doesn't compile
| Reported by: | Owned by: | John Maddock | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | multiprecision |
| Version: | Boost Development Trunk | Severity: | Problem |
| Keywords: | Cc: |
Description
This code gives me a lenghty error messaage:
#include <boost/multiprecision/cpp_int.hpp>
int main()
{
boost::multiprecision::cpp_rational a;
boost::multiprecision::cpp_int b;
a = -b + a;
return 0;
}
Note:
See TracTickets
for help on using tickets.

(In [83227]) Fix operators that operate on unary-negated expressions. Suppress some MSVC specific warnings. Fix some bugs exposed by above changes and add new test cases. Fixes #8176.