diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-17 18:21:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-17 18:21:37 +0300 |
commit | fe4eff7bbf665cf356271c19feccb80b99cf877b (patch) | |
tree | b0d9e7fd4a5be4b1dd2ef5472953ed9aa718879d /src/utils/dtor.h | |
parent | 0f64a06317df182ab0ff4a0ae9fbe1aad880dcc0 (diff) | |
download | manaverse-fe4eff7bbf665cf356271c19feccb80b99cf877b.tar.gz manaverse-fe4eff7bbf665cf356271c19feccb80b99cf877b.tar.bz2 manaverse-fe4eff7bbf665cf356271c19feccb80b99cf877b.tar.xz manaverse-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.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; } }; |