Replace Hash CRTP base with a concept.
This commit is contained in:
1 parent
b769e55753
commit
2f1b5091cd
4 files changed
+13
-28
No files matched your search
+3
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user