summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Emmenlauer <mario@emmenlauer.de>2020-04-08 14:39:58 +0200
committerJens Geyer <jensg@apache.org>2020-12-03 23:01:53 +0100
commitc0619235bdaaaf16941abbf8ba77a84a06708178 (patch)
treecff42d044e5cc0505e90548e3d1d714c10fb4c86
parentc981cf8891cab7277ddb083282c27549da5a9dda (diff)
downloadthrift-c0619235bdaaaf16941abbf8ba77a84a06708178.tar.gz
Make ~TException() virtual
Client: cpp Patch: Mario Emmenlauer This closes #2281
-rw-r--r--lib/cpp/src/thrift/Thrift.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cpp/src/thrift/Thrift.h b/lib/cpp/src/thrift/Thrift.h
index 6cb24e660..d5066ee71 100644
--- a/lib/cpp/src/thrift/Thrift.h
+++ b/lib/cpp/src/thrift/Thrift.h
@@ -79,7 +79,7 @@ public:
TException(const std::string& message) : message_(message) {}
- ~TException() noexcept override = default;
+ virtual ~TException() noexcept override = default;
const char* what() const noexcept override {
if (message_.empty()) {