0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-26 12:41:06 +08:00

Define PUGIXML_NOEXCEPT as throw()

This is necessary to avoid gcc warnings for exception::what()
This commit is contained in:
Arseny Kapoulkine 2024-10-22 13:36:47 -07:00 committed by GitHub
parent 6247ece208
commit d713fd2315
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,14 +82,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