Opened 10 years ago

Closed 10 years ago

#8176 closed Bugs (fixed)

multiprecision, correct code with cpp_rational doesn't compile

Reported by: Stepan Podoskin <stepik-777@…> 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;
}

Change History (1)

comment:1 by John Maddock, 10 years ago

Resolution: fixed
Status: newclosed

(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.

Note: See TracTickets for help on using tickets.