summaryrefslogtreecommitdiff
path: root/boost/geometry/algorithms/detail/closest_feature/range_to_range.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/algorithms/detail/closest_feature/range_to_range.hpp')
-rw-r--r--boost/geometry/algorithms/detail/closest_feature/range_to_range.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/boost/geometry/algorithms/detail/closest_feature/range_to_range.hpp b/boost/geometry/algorithms/detail/closest_feature/range_to_range.hpp
index 90248767ec..ceba59b41a 100644
--- a/boost/geometry/algorithms/detail/closest_feature/range_to_range.hpp
+++ b/boost/geometry/algorithms/detail/closest_feature/range_to_range.hpp
@@ -60,6 +60,7 @@ private:
BOOST_ASSERT( queries_first != queries_last );
Distance const zero = Distance(0);
+ dist_min = zero;
// create -- packing algorithm
rtree_type rt(rtree_first, rtree_last);