Skip to content

Commit d713fd2

Browse files
authored
Define PUGIXML_NOEXCEPT as throw()
This is necessary to avoid gcc warnings for exception::what()
1 parent 6247ece commit d713fd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pugixml.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@
8282
# endif
8383
#endif
8484

85-
// If C++ is 2011 or higher, add 'noexcept' specifiers
85+
// If C++ is 2011 or higher, use 'noexcept' specifiers
8686
#ifndef PUGIXML_NOEXCEPT
8787
# if __cplusplus >= 201103
8888
# define PUGIXML_NOEXCEPT noexcept
8989
# elif defined(_MSC_VER) && _MSC_VER >= 1900
9090
# define PUGIXML_NOEXCEPT noexcept
9191
# else
92-
# define PUGIXML_NOEXCEPT
92+
# define PUGIXML_NOEXCEPT throw()
9393
# endif
9494
#endif
9595

0 commit comments

Comments
 (0)