Add virtual destructors where necessary

This commit is contained in:
Jason Turner 2009-05-27 16:47:45 +00:00
parent 4f8ffd0129
commit 100b38f14e

View File

@ -98,6 +98,7 @@ struct Param_List_Builder
class Proxy_Function class Proxy_Function
{ {
public: public:
virtual ~Proxy_Function() {}
virtual Boxed_Value operator()(const std::vector<Boxed_Value> &params) = 0; virtual Boxed_Value operator()(const std::vector<Boxed_Value> &params) = 0;
virtual std::vector<Type_Info> get_param_types() = 0; virtual std::vector<Type_Info> 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<Boxed_Value> &params) virtual Boxed_Value operator()(const std::vector<Boxed_Value> &params)
{ {
return m_f(params); 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<Boxed_Value> &params) virtual Boxed_Value operator()(const std::vector<Boxed_Value> &params)
{ {
return call_func(m_f, params); return call_func(m_f, params);