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/option.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'asl/option.hpp') diff --git a/asl/option.hpp b/asl/option.hpp index eb6a91c..f7a3eab 100644 --- a/asl/option.hpp +++ b/asl/option.hpp @@ -5,6 +5,7 @@ #include "asl/maybe_uninit.hpp" #include "asl/functional.hpp" #include "asl/annotations.hpp" +#include "asl/hash.hpp" namespace asl { @@ -485,8 +486,23 @@ public: { return has_value() ? ASL_MOVE(*this) : invoke(ASL_FWD(f)); } + + template + requires (!uniquely_represented