summaryrefslogtreecommitdiff
path: root/asl/utility.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2025-01-26 22:35:47 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2025-01-26 22:45:42 +0100
commitb3f2336e1b8f4410515344feb73d992d854c8282 (patch)
tree5b4de235b46a6081206b17761acc1bab1ea5c720 /asl/utility.hpp
parentcf7db48c261ee9c896c813a38ff8c59da5b8fe07 (diff)
Implement logging
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 51084e1..f3b94c3 100644
--- a/asl/utility.hpp
+++ b/asl/utility.hpp
@@ -81,4 +81,16 @@ constexpr bool is_pow2(isize_t v)
ASL_DELETE_COPY(T) \
ASL_DELETE_MOVE(T)
+#define ASL_DEFAULT_COPY(T) \
+ T(const T&) = default; \
+ T& operator=(const T&) = default;
+
+#define ASL_DEFAULT_MOVE(T) \
+ T(T&&) = default; \
+ T& operator=(T&&) = default;
+
+#define ASL_DEFAULT_COPY_MOVE(T) \
+ ASL_DEFAULT_COPY(T) \
+ ASL_DEFAULT_MOVE(T)
+
} // namespace asl