summaryrefslogtreecommitdiff
path: root/utility/special_members.hpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-30 14:14:01 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-04 19:26:55 +0000
commit2eeaeafb40a6b04b811714c793fb97ce4de41254 (patch)
tree55cea15af898afe6f0b81a3e6e2e7debe618a8b6 /utility/special_members.hpp
parentBasic support for loading a heightmap from an image (diff)
downloadilt-2eeaeafb40a6b04b811714c793fb97ce4de41254.tar.bz2
ilt-2eeaeafb40a6b04b811714c793fb97ce4de41254.tar.xz
ilt-2eeaeafb40a6b04b811714c793fb97ce4de41254.zip
Split into main app and library the rest for testing
Diffstat (limited to 'utility/special_members.hpp')
-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