summaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
Diffstat (limited to 'utility')
-rw-r--r--utility/special_members.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/utility/special_members.hpp b/utility/special_members.hpp
index f396813..0d63f58 100644
--- a/utility/special_members.hpp
+++ b/utility/special_members.hpp
@@ -9,4 +9,10 @@
TYPE(TYPE &&) = delete; \
void operator=(TYPE &&) = delete
+#define DEFAULT_MOVE_COPY(TYPE) \
+ TYPE(const TYPE &) = default; \
+ TYPE(TYPE &&) = default; \
+ TYPE & operator=(const TYPE &) = default; \
+ TYPE & operator=(TYPE &&) = default
+
#endif