PATCH for lack of virtual destructor

S Roderick <[email protected]> Tue, 17 Feb 2015 13:23:12 -0500
Newsgroups gmane.science.robotics.orocos.devel
Message-ID <[email protected]>
OperationCaller has virtual functions but not a virtual destructor, which leads to compile errors with certain compilers and options.
S

-- 
Orocos-Dev mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
0001-rtt-Use-virtual-destructor-for-OperationCaller.patch (application/octet-stream, 783 B)
From 5bedb4227af4beb5d49764640fcd9a68b62d83e8 Mon Sep 17 00:00:00 2001
From: Stephen Roderick <[email protected]>
Date: Wed, 21 Jan 2015 16:17:29 -0500
Subject: [PATCH] rtt: Use virtual destructor for OperationCaller

It has virtual functions but not a virtual destructor, which leads
to compile errors with certain compilers and options.
---
 rtt/OperationCaller.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rtt/OperationCaller.hpp b/rtt/OperationCaller.hpp
index e3b95f6..9d3b9cf 100644
--- a/rtt/OperationCaller.hpp
+++ b/rtt/OperationCaller.hpp
@@ -314,7 +314,7 @@ namespace RTT
         /**
          * Clean up the OperationCaller object.
          */
-        ~OperationCaller()
+        virtual ~OperationCaller()
         {
         }
 
-- 
2.1.2