
14 Dec
2009
14 Dec
'09
9:59 a.m.
Nat Goodspeed wrote:
Maybe this shouldn't be a BOOST_FOREACH feature at all. As with Python's builtin enumerate() function, maybe what we want here is an iterator adapter that dereferences to a std::pair
?
Couldn't you just do a BOOST_FOREACH over combine(count_range(), foos) for that? (uses zip_iterator)