diff --git a/example/graph-thingie.cpp b/example/graph-thingie.cpp index 71eaa7809..3b3c665dd 100644 --- a/example/graph-thingie.cpp +++ b/example/graph-thingie.cpp @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include #include @@ -95,7 +95,8 @@ int main() cout << "graph " << get("name", dp, &graph) << " (" << get("identifier", dp, &graph) << ")\n\n"; - BOOST_FOREACH (graph_t::vertex_descriptor v, vertices(graph)) + for (graph_t::vertex_descriptor v : + boost::make_iterator_range(vertices(graph))) { cout << "vertex " << get("node_id", dp, v) << " (" << get("label", dp, v) << ")\n";