From fe421d57ea116df769fc15561519c53b70c70ce6 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Mon, 15 Jul 2024 10:51:23 -0700 Subject: [PATCH] throw() -> noexcept `throw()` was deprecated in C++11 and removed in C++17. `noexcept` is the appropriate replacement. --- lib/include/CL/Utils/Error.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/CL/Utils/Error.hpp b/lib/include/CL/Utils/Error.hpp index 50df2f7b..034e353e 100644 --- a/lib/include/CL/Utils/Error.hpp +++ b/lib/include/CL/Utils/Error.hpp @@ -35,13 +35,13 @@ namespace util { Error(cl_int err, const char* errStr = NULL): err_(err), errStr_(errStr) {} - ~Error() throw() {} + ~Error() noexcept {} /*! \brief Get error string associated with exception * * \return A memory pointer to the error message string. */ - virtual const char* what() const throw() + virtual const char* what() const noexcept { if (errStr_ == NULL) {