Add virtual destructors where necessary
This commit is contained in:
parent
4f8ffd0129
commit
100b38f14e
@ -98,6 +98,7 @@ struct Param_List_Builder
|
||||
class Proxy_Function
|
||||
{
|
||||
public:
|
||||
virtual ~Proxy_Function() {}
|
||||
virtual Boxed_Value operator()(const std::vector<Boxed_Value> ¶ms) = 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> ¶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<Boxed_Value> ¶ms)
|
||||
{
|
||||
return call_func(m_f, params);
|
||||
|
Loading…
x
Reference in New Issue
Block a user