Add virtual destructor to HolderBase (#28)

This commit is contained in:
jvilk-stripe 2019-03-11 00:14:13 -07:00 committed by Arun Muralidharan
parent 3e29149ad1
commit de5f791d04

View File

@ -618,6 +618,7 @@ public:
private:
struct HolderBase {
virtual void operator()() const = 0;
virtual ~HolderBase(){};
};
template <typename T>
struct FuncHolder: HolderBase {