summaryrefslogtreecommitdiff
path: root/src/utils/dtor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/dtor.h')
-rw-r--r--src/utils/dtor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/dtor.h b/src/utils/dtor.h
index c14ec41f6..52c44ead9 100644
--- a/src/utils/dtor.h
+++ b/src/utils/dtor.h
@@ -27,8 +27,10 @@
#include <functional>
#include <utility>
+#include "localconsts.h"
+
template<typename T>
-struct dtor : public std::unary_function <T, void>
+struct dtor final : public std::unary_function <T, void>
{
void operator()(T &ptr)
{ delete ptr; }