Ticket #7450: ra.patch

File ra.patch, 1.0 KB (added by Luca Di Gaspero <l.digaspero@…>, 10 years ago)

patch to get it working

  • 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 this->to_int(x); }
     72  T int_up  (const T& x) { this->upward();   return this->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 -this->to_int(-x); }
     109  T int_up  (const T& x) { return this->to_int(x); }
    110110# undef BOOST_DN
    111111# undef BOOST_NR
    112112# undef BOOST_UP