This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new c061923  Make ~TException() virtual Client: cpp Patch: Mario Emmenlauer
c061923 is described below

commit c0619235bdaaaf16941abbf8ba77a84a06708178
Author: Mario Emmenlauer <[email protected]>
AuthorDate: Wed Apr 8 14:39:58 2020 +0200

    Make ~TException() virtual
    Client: cpp
    Patch: Mario Emmenlauer
    
    This closes #2281
---
 lib/cpp/src/thrift/Thrift.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cpp/src/thrift/Thrift.h b/lib/cpp/src/thrift/Thrift.h
index 6cb24e6..d5066ee 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()) {

Reply via email to