From 3994bfc93e58d68dfedad488da70c43c3daf0d0d Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 9 May 2023 10:51:52 +0200 Subject: [PATCH] cpp/cpp.h.top: mark exception::what override This clarifies that this method overrides the method of std::exception. Signed-off-by: Sven Verdoolaege --- cpp/cpp.h.top | 2 +- include/isl/cpp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/cpp.h.top b/cpp/cpp.h.top index 9af6f48d..02b5a916 100644 --- a/cpp/cpp.h.top +++ b/cpp/cpp.h.top @@ -92,7 +92,7 @@ public: } static inline void throw_error(enum isl_error error, const char *msg, const char *file, int line); - virtual const char *what() const noexcept { + virtual const char *what() const noexcept override { return what_str->c_str(); } diff --git a/include/isl/cpp.h b/include/isl/cpp.h index 47405ae4..98311115 100644 --- a/include/isl/cpp.h +++ b/include/isl/cpp.h @@ -92,7 +92,7 @@ public: } static inline void throw_error(enum isl_error error, const char *msg, const char *file, int line); - virtual const char *what() const noexcept { + virtual const char *what() const noexcept override { return what_str->c_str(); } -- 2.11.4.GIT