From 134ef3dd4efe49ebeb749f511ff93341d1d57a18 Mon Sep 17 00:00:00 2001 From: hashlag Date: Sat, 12 Sep 2026 02:33:20 +0300 Subject: [PATCH] Update concept Hash: require const methods. --- Chaos/Hash/Hash.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Chaos/Hash/Hash.hpp b/Chaos/Hash/Hash.hpp index af87c44..ea73799 100644 --- a/Chaos/Hash/Hash.hpp +++ b/Chaos/Hash/Hash.hpp @@ -8,10 +8,10 @@ namespace Chaos::Hash { template -concept Hash = requires(T hash) +concept Hash = requires(const T constHash) { - hash.GetRawDigest(); - { hash.ToHexString() } -> std::same_as; + constHash.GetRawDigest(); + { constHash.ToHexString() } -> std::same_as; }; } // namespace Chaos::Hash