Skip to content

Commit

Permalink
Merge branch 'master' into issue-626-add-stringview-remainder
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ignatoff committed Oct 23, 2024
2 parents 7432316 + 7e70274 commit cebb420
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/manual.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
----

Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/pugixml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12700,7 +12700,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;
}
Expand Down
6 changes: 3 additions & 3 deletions src/pugixml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@
# endif
#endif

// If C++ is 2011 or higher, add 'noexcept' specifiers
// If C++ is 2011 or higher, use 'noexcept' specifiers
#ifndef PUGIXML_NOEXCEPT
# if __cplusplus >= 201103
# define PUGIXML_NOEXCEPT noexcept
# elif defined(_MSC_VER) && _MSC_VER >= 1900
# define PUGIXML_NOEXCEPT noexcept
# else
# define PUGIXML_NOEXCEPT
# define PUGIXML_NOEXCEPT throw()
# endif
#endif

Expand Down Expand Up @@ -1383,7 +1383,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;
Expand Down

0 comments on commit cebb420

Please sign in to comment.