Replace Hasher CRTP base with a concept.
This commit is contained in:
+3
-1
@@ -157,7 +157,7 @@ struct Sha1Hash
|
||||
|
||||
static_assert(Hash<Sha1Hash>);
|
||||
|
||||
class Sha1Hasher : public Hasher<Sha1Hasher>
|
||||
class Sha1Hasher
|
||||
{
|
||||
public:
|
||||
using HashType = Sha1Hash;
|
||||
@@ -298,6 +298,8 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
static_assert(Hasher<Sha1Hasher>);
|
||||
|
||||
} // namespace Chaos::Hash::Sha1
|
||||
|
||||
#endif // CHAOS_HASH_SHA1_HPP
|
||||
|
||||
Reference in New Issue
Block a user