diff options
Diffstat (limited to 'third_party/nix/src/libutil/types.hh')
-rw-r--r-- | third_party/nix/src/libutil/types.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/libutil/types.hh b/third_party/nix/src/libutil/types.hh index ab2fee392286..25e9d23017cf 100644 --- a/third_party/nix/src/libutil/types.hh +++ b/third_party/nix/src/libutil/types.hh @@ -77,8 +77,8 @@ class BaseError : public std::exception { BaseError(Args... args) : err(fmt(args...)) {} #ifdef EXCEPTION_NEEDS_THROW_SPEC - ~BaseError() throw(){}; - const char* what() const throw() { return err.c_str(); } + ~BaseError() noexcept {}; + const char* what() const noexcept { return err.c_str(); } #else const char* what() const noexcept { return err.c_str(); } #endif |