mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Simplify type trait usage (remove ::value usage)
This commit is contained in:
parent
cd7ebdb2ed
commit
4957dace64
3 changed files with 9 additions and 10 deletions
|
@ -108,7 +108,7 @@ UHF::UHF(Hasher::seed_t arg_seed)
|
|||
// times.
|
||||
Hasher::digest UHF::hash(const void* x, size_t n) const
|
||||
{
|
||||
static_assert(std::is_same<highwayhash::SipHashState::Key, decltype(seed.h)>::value,
|
||||
static_assert(std::is_same_v<highwayhash::SipHashState::Key, decltype(seed.h)>,
|
||||
"Seed value is not the same type as highwayhash key");
|
||||
return highwayhash::SipHash(seed.h, reinterpret_cast<const char*>(x), n);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue