nothrow: use noexcept for C++11 and newer

In C++11, the `throw()` specifier is deprecated and `noexcept` is
preffered instead.
This commit is contained in:
Ben Boeckel 2018-01-29 13:58:18 -05:00 committed by Lasse Collin
vanhempi fb6d4f83cb
commit bc19799169
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa

Näytä tiedosto

@ -219,7 +219,11 @@
*/
#ifndef lzma_nothrow
# if defined(__cplusplus)
# define lzma_nothrow throw()
# if __cplusplus >= 201103L
# define lzma_nothrow noexcept
# else
# define lzma_nothrow throw()
# endif
# elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)
# define lzma_nothrow __attribute__((__nothrow__))
# else