diff --git a/include/boost/geometry/algorithms/detail/overlay/append_no_dups_or_spikes.hpp b/include/boost/geometry/algorithms/detail/overlay/append_no_dups_or_spikes.hpp index 78de4d438..3006285c5 100644 --- a/include/boost/geometry/algorithms/detail/overlay/append_no_dups_or_spikes.hpp +++ b/include/boost/geometry/algorithms/detail/overlay/append_no_dups_or_spikes.hpp @@ -137,7 +137,7 @@ inline void clean_closing_dups_and_spikes(Range& range, // Remove closing last point range::resize(range, boost::size(range) - 1); // Add new closing point - range::push_back(range, *boost::begin(range)); + range::push_back(range, range::front(range)); } found = true; }