mirror of
https://github.com/zeux/pugixml.git
synced 2025-01-14 01:47:55 +08:00
Define PUGIXML_NOEXCEPT as throw()
This is necessary to avoid gcc warnings for exception::what()
This commit is contained in:
parent
6247ece208
commit
d713fd2315
@ -82,14 +82,14 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If C++ is 2011 or higher, add 'noexcept' specifiers
|
// If C++ is 2011 or higher, use 'noexcept' specifiers
|
||||||
#ifndef PUGIXML_NOEXCEPT
|
#ifndef PUGIXML_NOEXCEPT
|
||||||
# if __cplusplus >= 201103
|
# if __cplusplus >= 201103
|
||||||
# define PUGIXML_NOEXCEPT noexcept
|
# define PUGIXML_NOEXCEPT noexcept
|
||||||
# elif defined(_MSC_VER) && _MSC_VER >= 1900
|
# elif defined(_MSC_VER) && _MSC_VER >= 1900
|
||||||
# define PUGIXML_NOEXCEPT noexcept
|
# define PUGIXML_NOEXCEPT noexcept
|
||||||
# else
|
# else
|
||||||
# define PUGIXML_NOEXCEPT
|
# define PUGIXML_NOEXCEPT throw()
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user