From 100b38f14e73cbc014a61b883d175eeef2770710 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Wed, 27 May 2009 16:47:45 +0000 Subject: [PATCH] Add virtual destructors where necessary --- boxedcpp/proxy_functions.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boxedcpp/proxy_functions.hpp b/boxedcpp/proxy_functions.hpp index 4453a35..9684ef9 100644 --- a/boxedcpp/proxy_functions.hpp +++ b/boxedcpp/proxy_functions.hpp @@ -98,6 +98,7 @@ struct Param_List_Builder class Proxy_Function { public: + virtual ~Proxy_Function() {} virtual Boxed_Value operator()(const std::vector ¶ms) = 0; virtual std::vector get_param_types() = 0; @@ -111,6 +112,8 @@ class Dynamic_Proxy_Function : public Proxy_Function { } + virtual ~Dynamic_Proxy_Function() {} + virtual Boxed_Value operator()(const std::vector ¶ms) { return m_f(params); @@ -134,6 +137,9 @@ class Proxy_Function_Impl : public Proxy_Function { } + virtual ~Proxy_Function_Impl() {} + + virtual Boxed_Value operator()(const std::vector ¶ms) { return call_func(m_f, params);