From 55a2835bfdb17e2e474629da9e0c210697de7c84 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Sat, 24 Feb 2024 06:45:59 -0800 Subject: [PATCH] Remove deprecated `throw()` `throw()` has been deprecated since C++11; replace it with `noexcept`. --- util/exception.hh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/util/exception.hh b/util/exception.hh index b765ae36..08bb6656 100644 --- a/util/exception.hh +++ b/util/exception.hh @@ -14,10 +14,10 @@ template typename Except::template ExceptionTag typename Except::template ExceptionTag inline std::size_t CheckOverflowInternal(uint64_t value) { @@ -149,8 +149,8 @@ inline std::size_t CheckOverflow(uint64_t value) { /* Thrown for Windows specific operations. */ class WindowsException : public Exception { public: - WindowsException() throw(); - ~WindowsException() throw(); + WindowsException() noexcept; + ~WindowsException() noexcept; }; #endif