Update concept Hasher: require T::BLOCK_SIZE_BYTES to be a constant
expression.
This commit is contained in:
1 parent
ba87a7d149
commit
a070a0c343
1 file changed
+3
@@ -14,7 +14,10 @@ template<typename T>
|
||||
concept Hasher = requires(T hasher, uint8_t * begin, uint8_t * end)
|
||||
{
|
||||
typename T::HashType;
|
||||
|
||||
requires std::unsigned_integral<std::remove_cvref_t<decltype(T::BLOCK_SIZE_BYTES)>>;
|
||||
typename std::integral_constant<decltype(T::BLOCK_SIZE_BYTES), T::BLOCK_SIZE_BYTES>;
|
||||
|
||||
hasher.Reset();
|
||||
hasher.Update(begin, end);
|
||||
{ hasher.Finish() } -> Hash;
|
||||
|
||||
Reference in new issue
Block a user