From 838c4b9a45a50f252c7b20d14570b0b7463709ab Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 8 Jan 2025 23:40:52 +0100 Subject: Finish work on hashing probably --- asl/box.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'asl/box.hpp') diff --git a/asl/box.hpp b/asl/box.hpp index d018c03..340a37c 100644 --- a/asl/box.hpp +++ b/asl/box.hpp @@ -5,6 +5,7 @@ #include "asl/annotations.hpp" #include "asl/memory.hpp" #include "asl/utility.hpp" +#include "asl/hash.hpp" namespace asl { @@ -82,6 +83,13 @@ public: { return m_ptr == nullptr; } + + template + requires hashable + friend H AslHashValue(H h, const box& b) + { + return H::combine(ASL_MOVE(h), *b); + } }; template -- cgit