summaryrefslogtreecommitdiff
path: root/asl/utility.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-10-08 23:33:21 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-20 15:35:58 +0100
commit0e7999f2d147b026aaee6693bdd2be2cb4a2519e (patch)
treeb5bc7e49f732009f5d5f26ec625f4fa96935d40a /asl/utility.hpp
parent85462f25d6335bcca9423b6fc1e624d9a76a2375 (diff)
Start work on formatting
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