From f0cccbe3285c039553e1fd8b5a5c7830d6087974 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Thu, 6 Mar 2025 22:56:56 +0100 Subject: 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. --- asl/memory/allocator.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asl/memory/allocator.hpp') 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 T* alloc_new(allocator auto& a, auto&&... args) { void* ptr = a.alloc(layout::of()); - return construct_at(ptr, ASL_FWD(args)...); + return construct_at(ptr, std::forward(args)...); } template @@ -50,7 +50,7 @@ void alloc_delete(allocator auto& a, T* ptr) template constexpr T* alloc_new_default(auto&&... args) { - return alloc_new(DefaultAllocator{}, ASL_FWD(args)...); + return alloc_new(DefaultAllocator{}, std::forward(args)...); } template -- cgit