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/containers/hash_map.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'asl/containers/hash_map.hpp') diff --git a/asl/containers/hash_map.hpp b/asl/containers/hash_map.hpp index 77e5512..cf2f0b2 100644 --- a/asl/containers/hash_map.hpp +++ b/asl/containers/hash_map.hpp @@ -77,7 +77,7 @@ public: constexpr hash_map() requires default_constructible = default; explicit constexpr hash_map(Allocator allocator) - : Base{ASL_MOVE(allocator)} + : Base{std::move(allocator)} {} hash_map(const hash_map&) requires copyable && copyable = default; @@ -122,7 +122,7 @@ public: { ASL_ASSERT((Base::m_tags[result.first_available_index] & Base::kHasValue) == 0); - Base::m_values[result.first_available_index].construct_unsafe(ASL_MOVE(Base::m_values[result.already_present_index].as_init_unsafe())); + Base::m_values[result.first_available_index].construct_unsafe(std::move(Base::m_values[result.already_present_index].as_init_unsafe())); Base::m_values[result.already_present_index].destroy_unsafe(); Base::m_tags[result.first_available_index] = result.tag; @@ -133,17 +133,17 @@ public: if constexpr (sizeof...(Args1) == 0 && assignable_from) { - Base::m_values[result.first_available_index].as_init_unsafe().value = ASL_FWD(arg0); + Base::m_values[result.first_available_index].as_init_unsafe().value = std::forward(arg0); } else { - Base::m_values[result.first_available_index].as_init_unsafe().value = ASL_MOVE(V{ASL_FWD(arg0), ASL_FWD(args1)...}); + Base::m_values[result.first_available_index].as_init_unsafe().value = std::move(V{std::forward(arg0), std::forward(args1)...}); } } else { ASL_ASSERT((Base::m_tags[result.first_available_index] & Base::kHasValue) == 0); - Base::m_values[result.first_available_index].construct_unsafe(ASL_FWD(key), V{ASL_FWD(arg0), ASL_FWD(args1)...}); + Base::m_values[result.first_available_index].construct_unsafe(std::forward(key), V{std::forward(arg0), std::forward(args1)...}); Base::m_tags[result.first_available_index] = result.tag; Base::m_size += 1; } -- cgit