
30 Aug
2005
30 Aug
'05
9:20 p.m.
Works great for me. This sort of macro really gives me a lot of hope for C++. I didn't think it was possible, actually. Generic programming is just crying out to be combined with functional programming. Lambda is great for small stuff, but it's trouble when things get complicated. BOOST_FOREACH, on the other hand, only works for one (important) task but handles added complexity very well. I'm already thinking of places to combine the two. Joel Eidsath
I think
BOOST_FOREACH(int i, make_iterator_range(whatever.rbegin(), whatever.rend()))
does it (?)
http://www.boost.org/libs/range/doc/utility_class.html#iter_range