From 3ca0aa80fe05c00d1299862e03efffa4098ede8a Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Wed, 19 Nov 2014 15:19:29 +0100 Subject: [PATCH] [overlay] change default_order using index instead of address --- .../algorithms/detail/overlay/enrich_intersection_points.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp b/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp index ec0c5933f..7ed93f542 100644 --- a/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp +++ b/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp @@ -116,8 +116,8 @@ private : inline bool default_order(Indexed const& left, Indexed const& right) const { - // We've nothing to sort on. Take the addresses - return boost::addressof(left) < boost::addressof(right); + // We've nothing to sort on. Take the indexes + return left.turn_index < right.turn_index; } inline bool consider_relative_order(Indexed const& left,