Skip to content

Commit

Permalink
Use BOOST_NOEXCEPT_OR_NOTHROW in public headers to prepare for C++20.
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain-Geissler-1A authored and jeking3 committed Dec 26, 2018
1 parent aa46846 commit f90d1fa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/boost/numeric/interval/limits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ class numeric_limits<boost::numeric::interval<T, Policies> >
typedef boost::numeric::interval<T, Policies> I;
typedef numeric_limits<T> 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
Expand Down

0 comments on commit f90d1fa

Please sign in to comment.