From 8132c905156888044755898e1f9dc32ee45fc277 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Thu, 18 Mar 2021 15:09:01 -0400 Subject: [PATCH] Added throw() to ~StkError declaration to support all C++ versions. --- include/Stk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Stk.h b/include/Stk.h index d271618..5025aa2 100644 --- a/include/Stk.h +++ b/include/Stk.h @@ -114,7 +114,7 @@ public: : std::exception(), message_(message), type_(type) {} //! The destructor. - virtual ~StkError(void) {}; + virtual ~StkError(void) throw() {}; //! Prints thrown error message to stderr. virtual void printMessage(void) { std::cerr << '\n' << message_ << "\n\n"; }