summaryrefslogtreecommitdiff
path: root/src/utils/dtor.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-17 18:21:37 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-17 18:21:37 +0300
commitfe4eff7bbf665cf356271c19feccb80b99cf877b (patch)
treeb0d9e7fd4a5be4b1dd2ef5472953ed9aa718879d /src/utils/dtor.h
parent0f64a06317df182ab0ff4a0ae9fbe1aad880dcc0 (diff)
downloadmv-fe4eff7bbf665cf356271c19feccb80b99cf877b.tar.gz
mv-fe4eff7bbf665cf356271c19feccb80b99cf877b.tar.bz2
mv-fe4eff7bbf665cf356271c19feccb80b99cf877b.tar.xz
mv-fe4eff7bbf665cf356271c19feccb80b99cf877b.zip
Add missing A_DEFAULT_COPY / A_DELETE_COPY into utils.
Diffstat (limited to 'src/utils/dtor.h')
-rw-r--r--src/utils/dtor.h2
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; }
};