diff --git a/docs/manual.adoc b/docs/manual.adoc index 70436e8..c245fe1 100644 --- a/docs/manual.adoc +++ b/docs/manual.adoc @@ -2115,7 +2115,7 @@ By default, XPath functions throw `xpath_exception` object in case of errors; ad [source] ---- -virtual const char* xpath_exception::what() const throw(); +virtual const char* xpath_exception::what() const noexcept; const xpath_parse_result& xpath_exception::result() const; ---- @@ -3140,7 +3140,7 @@ const unsigned int +++parse_wnorm_attribute operator +++unspecified_bool_type+++() const; +++class xpath_exception+++: public std::exception - virtual const char* +++what+++() const throw(); + virtual const char* +++what+++() const noexcept; const xpath_parse_result& +++result+++() const; diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 652d1e2..f9db4a3 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -12391,7 +12391,7 @@ namespace pugi assert(_result.error); } - PUGI_IMPL_FN const char* xpath_exception::what() const throw() + PUGI_IMPL_FN const char* xpath_exception::what() const PUGIXML_NOEXCEPT { return _result.error; } diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 9af50df..e1c1f61 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -1314,7 +1314,7 @@ namespace pugi explicit xpath_exception(const xpath_parse_result& result); // Get error message - virtual const char* what() const throw() PUGIXML_OVERRIDE; + virtual const char* what() const PUGIXML_NOEXCEPT PUGIXML_OVERRIDE; // Get parse result const xpath_parse_result& result() const;