From 52ccdcdb7142a8e8ca55c83f914eba6815d7376f Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 4 Nov 2019 07:33:24 -0500 Subject: [PATCH] improve hash value computation for tuples --- parallel_hashmap/phmap_utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parallel_hashmap/phmap_utils.h b/parallel_hashmap/phmap_utils.h index ef29f08..3cbfcfc 100644 --- a/parallel_hashmap/phmap_utils.h +++ b/parallel_hashmap/phmap_utils.h @@ -345,7 +345,8 @@ private: _hash_helper(const std::tuple &t) const noexcept { const auto &el = std::get(t); using el_type = typename std::remove_cv::type>::type; - return phmap::Hash()(el) + _hash_helper(t); + return Combiner()( + phmap::Hash()(el), _hash_helper(t)); } };