diff --git a/mapbox/geometry/wagyu/active_bound_list.hpp b/mapbox/geometry/wagyu/active_bound_list.hpp index 153a365b..542b4090 100644 --- a/mapbox/geometry/wagyu/active_bound_list.hpp +++ b/mapbox/geometry/wagyu/active_bound_list.hpp @@ -112,7 +112,8 @@ insert_bound_into_ABL(bound& left, bound& right, active_bound_list& act auto itr = std::find_if(active_bounds.begin(), active_bounds.end(), bound_insert_location(left)); - return active_bounds.insert(itr, { &left, &right }); + itr = active_bounds.insert(itr, &right); + return active_bounds.insert(itr, &left); } template