0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-25 20:14:10 +08:00

throw() -> noexcept

This commit is contained in:
Richard Barnes 2024-07-15 10:54:09 -07:00
parent 30cc354fe3
commit 6247ece208
3 changed files with 4 additions and 4 deletions

View File

@ -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 +++<a href="#parse_wnorm_attribute">parse_wnorm_attribute</a>
operator +++<a href="#xpath_query::unspecified_bool_type">unspecified_bool_type</a>+++() const;
+++<span class="tok-k">class</span> <a href="#xpath_exception">xpath_exception</a>+++: public std::exception
virtual const char* +++<a href="#xpath_exception::what">what</a>+++() const throw();
virtual const char* +++<a href="#xpath_exception::what">what</a>+++() const noexcept;
const xpath_parse_result& +++<a href="#xpath_exception::result">result</a>+++() const;

View File

@ -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;
}

View File

@ -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;