This forbids to create base class instances which direct usage could lead to UB.
This commit is contained in:
1 parent
2c9200ab21
commit
b5d1f9a6fc
2 files changed
+6
No files matched your search
@@ -20,6 +20,9 @@ public:
|
||||
return Impl().ToHexString();
|
||||
}
|
||||
|
||||
protected:
|
||||
Hash() = default;
|
||||
|
||||
private:
|
||||
const T & Impl() const
|
||||
{
|
||||
|
||||
@@ -24,6 +24,9 @@ public:
|
||||
return Impl().Finish();
|
||||
}
|
||||
|
||||
protected:
|
||||
Hasher() = default;
|
||||
|
||||
private:
|
||||
const T & Impl() const
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user