From a070a0c343ca0661120278a26f96400bf092ff9a Mon Sep 17 00:00:00 2001 From: hashlag Date: Sat, 12 Sep 2026 03:11:05 +0300 Subject: [PATCH] Update concept Hasher: require T::BLOCK_SIZE_BYTES to be a constant expression. --- Chaos/Hash/Hasher.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Chaos/Hash/Hasher.hpp b/Chaos/Hash/Hasher.hpp index 4b30dd6..7055828 100644 --- a/Chaos/Hash/Hasher.hpp +++ b/Chaos/Hash/Hasher.hpp @@ -14,7 +14,10 @@ template concept Hasher = requires(T hasher, uint8_t * begin, uint8_t * end) { typename T::HashType; + requires std::unsigned_integral>; + typename std::integral_constant; + hasher.Reset(); hasher.Update(begin, end); { hasher.Finish() } -> Hash;