Ticket #6807: rounded_arith.diff

File rounded_arith.diff, 1.2 KB (added by Frederic Py <fredpy@…>, 11 years ago)

patch file for boost/numeric/interval/rounded_arith.hpp

  • boost/numeric/interval/rounded_arith.hpp

    old new  
    6868  { BOOST_NUMERIC_INTERVAL_using_math(sqrt); BOOST_DN(sqrt(x)); }
    6969  T sqrt_up  (const T& x)
    7070  { BOOST_NUMERIC_INTERVAL_using_math(sqrt); BOOST_UP(sqrt(x)); }
    71   T int_down(const T& x) { this->downward(); return to_int(x); }
    72   T int_up  (const T& x) { this->upward();   return to_int(x); }
     71  T int_down(const T& x) { this->downward(); return Rounding::to_int(x); }
     72  T int_up  (const T& x) { this->upward();   return Rounding::to_int(x); }
    7373# undef BOOST_DN
    7474# undef BOOST_NR
    7575# undef BOOST_UP
     
    105105  { BOOST_NUMERIC_INTERVAL_using_math(sqrt); BOOST_DN(sqrt(x)); }
    106106  T sqrt_up  (const T& x)
    107107  { BOOST_NUMERIC_INTERVAL_using_math(sqrt); BOOST_UP(sqrt(x)); }
    108   T int_down(const T& x) { return -to_int(-x); }
    109   T int_up  (const T& x) { return to_int(x); }
     108  T int_down(const T& x) { return -Rounding::to_int(-x); }
     109  T int_up  (const T& x) { return Rounding::to_int(x); }
    110110# undef BOOST_DN
    111111# undef BOOST_NR
    112112# undef BOOST_UP