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/hashing/hash.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'asl/hashing') diff --git a/asl/hashing/hash.hpp b/asl/hashing/hash.hpp index d4b0910..443a774 100644 --- a/asl/hashing/hash.hpp +++ b/asl/hashing/hash.hpp @@ -89,7 +89,7 @@ struct HashState { for (const auto& value: s) { - h = AslHashValue(ASL_MOVE(h), value); + h = AslHashValue(std::move(h), value); } return h; } @@ -103,7 +103,7 @@ struct HashState template Arg, hashable_generic... Remaining> static constexpr HashState combine(HashState h, const Arg& arg, const Remaining&... remaining) { - return combine(AslHashValue(ASL_MOVE(h), arg), remaining...); + return combine(AslHashValue(std::move(h), arg), remaining...); } }; @@ -113,13 +113,13 @@ concept hashable = hashable_generic; template constexpr H AslHashValue(H h, const T& value) { - return H::combine_contiguous(ASL_MOVE(h), span{&value, 1}); + return H::combine_contiguous(std::move(h), span{&value, 1}); } template constexpr H AslHashValue(H h, bool value) { - return AslHashValue(ASL_MOVE(h), value ? 1 : 0); + return AslHashValue(std::move(h), value ? 1 : 0); } template @@ -128,7 +128,7 @@ constexpr void AslHashValue(H h, T*); // Don't hash pointers template constexpr H AslHashValue(H h, const span& s) { - return H::combine_contiguous(ASL_MOVE(h), span{s.data(), s.size()}); + return H::combine_contiguous(std::move(h), span{s.data(), s.size()}); } template -- cgit