summaryrefslogtreecommitdiff
path: root/asl/utility.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'asl/utility.hpp')
-rw-r--r--asl/utility.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/asl/utility.hpp b/asl/utility.hpp
index 6cbff8e..2cbf8db 100644
--- a/asl/utility.hpp
+++ b/asl/utility.hpp
@@ -17,4 +17,16 @@ T exchange(T& obj, U&& new_value)
return old_value;
}
+#define ASL_DELETE_COPY(T) \
+ T(const T&) = delete; \
+ T& operator=(const T&) = delete;
+
+#define ASL_DELETE_MOVE(T) \
+ T(T&&) = delete; \
+ T& operator=(T&&) = delete;
+
+#define ASL_DELETE_COPY_MOVE(T) \
+ ASL_DELETE_COPY(T) \
+ ASL_DELETE_MOVE(T)
+
} // namespace asl