diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-06 22:56:56 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-06 22:56:56 +0100 |
commit | f0cccbe3285c039553e1fd8b5a5c7830d6087974 (patch) | |
tree | 57a0902484ec5c8ba3b9a8e7089ed42f58b6a580 /asl/memory/memory.hpp | |
parent | 54affafd86e2b7f387345c08e8c7285c775d75e5 (diff) |
Replace ASL_MOVE, ASL_FWD, and ASL_FWD_LIKE by their std:: equivalent
This is because some compiler stuff and diagnostics tools rely on those
symboles being what they are.
Diffstat (limited to 'asl/memory/memory.hpp')
-rw-r--r-- | asl/memory/memory.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/asl/memory/memory.hpp b/asl/memory/memory.hpp index bf4e125..96ab562 100644 --- a/asl/memory/memory.hpp +++ b/asl/memory/memory.hpp @@ -41,7 +41,7 @@ template<typename T, typename... Args> constexpr T* construct_at(void* ptr, Args&&... args) requires constructible_from<T, Args&&...> { - return new (ptr) T{ ASL_FWD(args)... }; + return new (ptr) T{ std::forward<Args>(args)... }; // NOLINT(*-owning-memory) } template<typename T> @@ -112,7 +112,7 @@ constexpr void relocate_uninit_n(T* to, T* from, isize_t n) for (isize_t i = 0; i < n; ++i) { // NOLINTNEXTLINE(*-pointer-arithmetic) - construct_at<T>(to + i, ASL_MOVE(from[i])); + construct_at<T>(to + i, std::move(from[i])); } destroy_n(from, n); } @@ -131,7 +131,7 @@ constexpr void relocate_assign_n(T* to, T* from, isize_t n) for (isize_t i = 0; i < n; ++i) { // NOLINTNEXTLINE(*-pointer-arithmetic) - to[i] = ASL_MOVE(from[i]); + to[i] = std::move(from[i]); } destroy_n(from, n); } |