diff --git a/parallel_hashmap/phmap_utils.h b/parallel_hashmap/phmap_utils.h index 58dd5b5..96fb6ff 100644 --- a/parallel_hashmap/phmap_utils.h +++ b/parallel_hashmap/phmap_utils.h @@ -113,7 +113,7 @@ private: typedef std::true_type yes; typedef std::false_type no; - template static auto test(int) -> decltype(hash_value(std::declval()) == 1, yes()); + template static auto test(int) -> decltype(U::hash_value(std::declval()) == 1, yes()); template static no test(...); @@ -130,7 +130,7 @@ struct Hash template ::value, int>::type = 0> size_t _hash(const T& val) const { - return hash_value(val); + return U::hash_value(val); } template ::value, int>::type = 0>