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/hashing/hash.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/hashing/hash.hpp')
-rw-r--r-- | asl/hashing/hash.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<hashable_generic<HashState> Arg, hashable_generic<HashState>... 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<T, HashState>; template<typename H, uniquely_represented T> constexpr H AslHashValue(H h, const T& value) { - return H::combine_contiguous(ASL_MOVE(h), span<const T>{&value, 1}); + return H::combine_contiguous(std::move(h), span<const T>{&value, 1}); } template<typename H> constexpr H AslHashValue(H h, bool value) { - return AslHashValue(ASL_MOVE(h), value ? 1 : 0); + return AslHashValue(std::move(h), value ? 1 : 0); } template<typename H, typename T> @@ -128,7 +128,7 @@ constexpr void AslHashValue(H h, T*); // Don't hash pointers template<typename H, hashable T> constexpr H AslHashValue(H h, const span<T>& s) { - return H::combine_contiguous(ASL_MOVE(h), span<const T>{s.data(), s.size()}); + return H::combine_contiguous(std::move(h), span<const T>{s.data(), s.size()}); } template<hashable T> |