From 733b5d5ae2c5d625211e2985ac25728ac3f54883 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Mon, 21 Mar 2016 15:45:20 +0900 Subject: Imported Upstream version 1.58.0 Change-Id: If0072143aa26874812e0db6872e1efb10a3e5e94 Signed-off-by: DongHun Kwak --- boost/numeric/interval/rounded_arith.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'boost/numeric/interval/rounded_arith.hpp') diff --git a/boost/numeric/interval/rounded_arith.hpp b/boost/numeric/interval/rounded_arith.hpp index 8b2d9a7187..2520274a6a 100644 --- a/boost/numeric/interval/rounded_arith.hpp +++ b/boost/numeric/interval/rounded_arith.hpp @@ -68,8 +68,8 @@ struct rounded_arith_std: Rounding { { BOOST_NUMERIC_INTERVAL_using_math(sqrt); BOOST_DN(sqrt(x)); } T sqrt_up (const T& x) { BOOST_NUMERIC_INTERVAL_using_math(sqrt); BOOST_UP(sqrt(x)); } - T int_down(const T& x) { this->downward(); return to_int(x); } - T int_up (const T& x) { this->upward(); return to_int(x); } + T int_down(const T& x) { this->downward(); return this->to_int(x); } + T int_up (const T& x) { this->upward(); return this->to_int(x); } # undef BOOST_DN # undef BOOST_NR # undef BOOST_UP @@ -105,8 +105,8 @@ struct rounded_arith_opp: Rounding { { BOOST_NUMERIC_INTERVAL_using_math(sqrt); BOOST_DN(sqrt(x)); } T sqrt_up (const T& x) { BOOST_NUMERIC_INTERVAL_using_math(sqrt); BOOST_UP(sqrt(x)); } - T int_down(const T& x) { return -to_int(-x); } - T int_up (const T& x) { return to_int(x); } + T int_down(const T& x) { return -this->to_int(-x); } + T int_up (const T& x) { return this->to_int(x); } # undef BOOST_DN # undef BOOST_NR # undef BOOST_UP -- cgit v1.2.3