Replace Hasher CRTP base with a concept.
This commit is contained in:
1 parent
2f1b5091cd
commit
b03fddd40b
5 files changed
+18
-37
No files matched your search
+1
-3
@@ -3,7 +3,6 @@
|
||||
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <type_traits>
|
||||
|
||||
#include "Hash/Hasher.hpp"
|
||||
#include "Service/ChaosException.hpp"
|
||||
@@ -11,8 +10,7 @@
|
||||
namespace Chaos::Mac::Hmac
|
||||
{
|
||||
|
||||
template<typename HasherImpl,
|
||||
typename = std::enable_if_t<std::is_base_of_v<Hash::Hasher<HasherImpl>, HasherImpl>>>
|
||||
template<Hash::Hasher HasherImpl>
|
||||
class Hmac
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in new issue
Block a user