diff --git a/cxxmph/mph_map.h b/cxxmph/mph_map.h index 63095c5..832f7b3 100644 --- a/cxxmph/mph_map.h +++ b/cxxmph/mph_map.h @@ -198,7 +198,7 @@ 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 = index2(k); + auto idx = index(k); typename vector::const_iterator vit = values_.begin() + idx; if (idx == -1 || vit->first != k) return end(); return make_solid(&values_, &present_, vit);;