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/allocator.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/allocator.hpp')
-rw-r--r-- | asl/memory/allocator.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asl/memory/allocator.hpp b/asl/memory/allocator.hpp index 1628a8a..bb6b992 100644 --- a/asl/memory/allocator.hpp +++ b/asl/memory/allocator.hpp @@ -37,7 +37,7 @@ template<typename T> T* alloc_new(allocator auto& a, auto&&... args) { void* ptr = a.alloc(layout::of<T>()); - return construct_at<T>(ptr, ASL_FWD(args)...); + return construct_at<T>(ptr, std::forward<decltype(args)>(args)...); } template<typename T> @@ -50,7 +50,7 @@ void alloc_delete(allocator auto& a, T* ptr) template<typename T> constexpr T* alloc_new_default(auto&&... args) { - return alloc_new<T>(DefaultAllocator{}, ASL_FWD(args)...); + return alloc_new<T>(DefaultAllocator{}, std::forward<decltype(args)>(args)...); } template<typename T> |