Replace Hash CRTP base with a concept.

This commit is contained in:
hashlag
2026-08-31 00:05:18 +03:00
parent b769e55753
commit 2f1b5091cd
4 changed files with 13 additions and 28 deletions
+3 -1
View File
@@ -129,7 +129,7 @@ private:
namespace Chaos::Hash::Sha1
{
struct Sha1Hash : public Hash<Sha1Hash>
struct Sha1Hash
{
std::array<uint8_t, 20> GetRawDigest() const
{
@@ -155,6 +155,8 @@ struct Sha1Hash : public Hash<Sha1Hash>
std::array<uint8_t, 20> RawDigest_;
};
static_assert(Hash<Sha1Hash>);
class Sha1Hasher : public Hasher<Sha1Hasher>
{
public: