diff --git a/include/boost/graph/r_c_shortest_paths.hpp b/include/boost/graph/r_c_shortest_paths.hpp index 23a0132ed..1bc9c1561 100644 --- a/include/boost/graph/r_c_shortest_paths.hpp +++ b/include/boost/graph/r_c_shortest_paths.hpp @@ -11,11 +11,11 @@ #include #include #include - #include + +#include #include #include -#include #include namespace boost @@ -193,7 +193,8 @@ namespace detail vec_last_valid_positions_for_dominance( vec_last_valid_positions_for_dominance_data.begin(), vertex_index_map); - BGL_FORALL_VERTICES_T(v, g, Graph) + + for(const auto v: boost::make_iterator_range(vertices(g))) { put(vec_last_valid_positions_for_dominance, v, vec_vertex_labels[v].begin()); @@ -434,15 +435,6 @@ namespace detail break; } } - - BGL_FORALL_VERTICES_T(i, g, Graph) - { - auto& list_labels_cur_vertex = vec_vertex_labels[i]; - for (auto& label : list_labels_cur_vertex) - { - label.reset(); - } - } } // r_c_shortest_paths_dispatch } // detail