Simplify type trait usage (remove ::value usage)

This commit is contained in:
Tim Wojtulewicz 2023-07-06 14:04:13 -07:00
parent cd7ebdb2ed
commit 4957dace64
3 changed files with 9 additions and 10 deletions

View file

@ -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);
}