From 523d56a74d994be675da96e3ac02f89b97f69e2e Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 12 May 2019 11:07:39 -0400 Subject: [PATCH] fix issue #10: `has_hash_value` does not work as expected --- parallel_hashmap/phmap_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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>