
28 Oct
2008
28 Oct
'08
7:20 a.m.
David Abrahams skrev:
I'm curious on why it isn't covered by BOOST_FOREACH
BOOST_FOREACH doesn't give you access to the iterator value, for what that's worth. Also some people don't like to use macros.
Ok. Dislike for macros is hard to argue against. But if the reason mainly is about accessing iterators, perhaps an indirection wrapper on vertices and BOOST_FOREACH is a more readable alternative. BOOST_FOREACH(vertex_iterator vi, keep_iterators(vertices(g))) { / Jonas