diff --git a/include/boost/numeric/conversion/converter_policies.hpp b/include/boost/numeric/conversion/converter_policies.hpp index e7a5e67..1619d64 100644 --- a/include/boost/numeric/conversion/converter_policies.hpp +++ b/include/boost/numeric/conversion/converter_policies.hpp @@ -12,6 +12,7 @@ #include // for std::bad_cast +#include #include // for std::floor and std::ceil #include @@ -136,7 +137,7 @@ class bad_numeric_cast : public std::bad_cast { public: - virtual const char * what() const throw() + virtual const char * what() const BOOST_NOEXCEPT_OR_NOTHROW { return "bad numeric conversion: overflow"; } }; @@ -144,14 +145,14 @@ class negative_overflow : public bad_numeric_cast { public: - virtual const char * what() const throw() + virtual const char * what() const BOOST_NOEXCEPT_OR_NOTHROW { return "bad numeric conversion: negative overflow"; } }; class positive_overflow : public bad_numeric_cast { public: - virtual const char * what() const throw() + virtual const char * what() const BOOST_NOEXCEPT_OR_NOTHROW { return "bad numeric conversion: positive overflow"; } };