Update concept Hasher: require T::HashType inner type.
This commit is contained in:
1 parent
0f41687ea6
commit
cb8b6ceeb8
1 file changed
+1
@@ -11,6 +11,7 @@ namespace Chaos::Hash
|
||||
template<typename T>
|
||||
concept Hasher = requires(T hasher, uint8_t * begin, uint8_t * end)
|
||||
{
|
||||
typename T::HashType;
|
||||
hasher.Reset();
|
||||
hasher.Update(begin, end);
|
||||
{ hasher.Finish() } -> Hash;
|
||||
|
||||
Reference in new issue
Block a user