From: Martin Kraemer Date: Sat, 9 Dec 2006 01:57:58 +0000 (+0000) Subject: Thrift TException Cleanup X-Git-Tag: 0.2.0~1580 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=8196a617453ad18c89e8898892aa748861592d81;p=common%2Fthrift.git Thrift TException Cleanup Summary: Destructors should be virtual or declared protected. Reviewed By: mcslee Revert Plan: revertible git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664892 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/Thrift.h b/lib/cpp/src/Thrift.h index 347ec213..89b37d04 100644 --- a/lib/cpp/src/Thrift.h +++ b/lib/cpp/src/Thrift.h @@ -21,7 +21,7 @@ public: TException(const std::string message) : message_(message) {} - ~TException() throw() {} + virtual ~TException() throw() {} const char* what() const throw() { if (message_.empty()) {