From 192743b0b692b1fabfbadfd1baeaeaf471565ddf Mon Sep 17 00:00:00 2001 From: Sayan Date: Fri, 25 Sep 2026 11:28:31 -0400 Subject: [PATCH] Replace BOOST_FOREACH with range-based for in example/graph-thingie.cpp --- example/graph-thingie.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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";