diff --git a/include/boost/geometry/index/detail/distance_predicates.hpp b/include/boost/geometry/index/detail/distance_predicates.hpp index c5c2c4c51..a8980cc41 100644 --- a/include/boost/geometry/index/detail/distance_predicates.hpp +++ b/include/boost/geometry/index/detail/distance_predicates.hpp @@ -112,7 +112,7 @@ struct calculate_distance< nearest, Indexable, Tag > static inline bool apply(nearest const& p, Indexable const& i, result_type & result) { - result = index::detail::comparable_distance_near(relation::value(p.point_or_relation), i); + result = geometry::comparable_distance(relation::value(p.point_or_relation), i); return true; } };