diff --git a/hashing.hh b/hashing.hh index 57d29074d7..c6623d17f5 100644 --- a/hashing.hh +++ b/hashing.hh @@ -56,7 +56,7 @@ public: static_assert(Hasher); -template +template struct appending_hash; template @@ -67,7 +67,8 @@ void feed_hash(H& h, const T& value, Args&&... args) noexcept { }; template -struct appending_hash::value>> { +requires std::is_arithmetic_v +struct appending_hash { template requires Hasher void operator()(H& h, T value) const noexcept { @@ -86,7 +87,8 @@ struct appending_hash { }; template -struct appending_hash::value>> { +requires std::is_enum_v +struct appending_hash { template requires Hasher void operator()(H& h, const T& value) const noexcept {