From f90d1fa7344f0f590e1bba65d8d14bf5a4ea9305 Mon Sep 17 00:00:00 2001 From: Romain Geissler Date: Tue, 13 Nov 2018 23:41:00 +0000 Subject: [PATCH] Use BOOST_NOEXCEPT_OR_NOTHROW in public headers to prepare for C++20. --- include/boost/numeric/interval/limits.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/boost/numeric/interval/limits.hpp b/include/boost/numeric/interval/limits.hpp index 36fd3a3..ce080dd 100644 --- a/include/boost/numeric/interval/limits.hpp +++ b/include/boost/numeric/interval/limits.hpp @@ -26,18 +26,18 @@ class numeric_limits > typedef boost::numeric::interval I; typedef numeric_limits bl; public: - static I min BOOST_PREVENT_MACRO_SUBSTITUTION () throw() { return I((bl::min)(), (bl::min)()); } - static I max BOOST_PREVENT_MACRO_SUBSTITUTION () throw() { return I((bl::max)(), (bl::max)()); } - static I epsilon() throw() { return I(bl::epsilon(), bl::epsilon()); } + static I min BOOST_PREVENT_MACRO_SUBSTITUTION () BOOST_NOEXCEPT_OR_NOTHROW { return I((bl::min)(), (bl::min)()); } + static I max BOOST_PREVENT_MACRO_SUBSTITUTION () BOOST_NOEXCEPT_OR_NOTHROW { return I((bl::max)(), (bl::max)()); } + static I epsilon() BOOST_NOEXCEPT_OR_NOTHROW { return I(bl::epsilon(), bl::epsilon()); } BOOST_STATIC_CONSTANT(float_round_style, round_style = round_indeterminate); BOOST_STATIC_CONSTANT(bool, is_iec559 = false); - static I infinity () throw() { return I::whole(); } - static I quiet_NaN() throw() { return I::empty(); } - static I signaling_NaN() throw() + static I infinity () BOOST_NOEXCEPT_OR_NOTHROW { return I::whole(); } + static I quiet_NaN() BOOST_NOEXCEPT_OR_NOTHROW { return I::empty(); } + static I signaling_NaN() BOOST_NOEXCEPT_OR_NOTHROW { return I(bl::signaling_NaN(), bl::signaling_Nan()); } - static I denorm_min() throw() + static I denorm_min() BOOST_NOEXCEPT_OR_NOTHROW { return I(bl::denorm_min(), bl::denorm_min()); } private: static I round_error(); // hide this on purpose, not yet implemented