From 99ac6744c72d36792e12eb9759c5c027ab2f8a79 Mon Sep 17 00:00:00 2001 From: Davi de Castro Reis Date: Fri, 8 Jun 2012 12:15:01 -0300 Subject: [PATCH] Fixed equality op. --- cxxmph/mph_map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cxxmph/mph_map.h b/cxxmph/mph_map.h index 554fce4..19de922 100644 --- a/cxxmph/mph_map.h +++ b/cxxmph/mph_map.h @@ -209,14 +209,14 @@ MPH_MAP_METHOD_DECL(void_type, erase)(const key_type& k) { MPH_MAP_INLINE_METHOD_DECL(const_iterator, find)(const key_type& k) const { auto idx = index(k); typename vector::const_iterator vit = values_.begin() + idx; - if (idx == -1 || vit->first != k) return end(); + if (idx == -1 || !equal_(vit->first, k)) return end(); return make_solid(&values_, &present_, vit);; } MPH_MAP_INLINE_METHOD_DECL(iterator, find)(const key_type& k) { auto idx = index(k); typename vector::iterator vit = values_.begin() + idx; - if (idx == -1 || vit->first != k) return end(); + if (idx == -1 || !equal_(vit->first, k)) return end(); return make_solid(&values_, &present_, vit);; }