From b3f2336e1b8f4410515344feb73d992d854c8282 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sun, 26 Jan 2025 22:35:47 +0100 Subject: Implement logging --- asl/utility.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'asl/utility.hpp') 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 -- cgit