diff options
Diffstat (limited to 'src/utils/dtor.h')
-rw-r--r-- | src/utils/dtor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/dtor.h b/src/utils/dtor.h index 87dd3418a..7856fc248 100644 --- a/src/utils/dtor.h +++ b/src/utils/dtor.h @@ -31,6 +31,8 @@ template<typename T> struct dtor final : public std::unary_function <T, void> { + A_DEFAULT_COPY(dtor) + void operator()(T &ptr) { delete ptr; } }; |