Re: [Boost-users] [boost users][tuple] foreach with tuple
typedef vector
> vec_type; vec_type l_listLeftLines; foreach (vec_type::reference i_pair, l_listLeftLines) {...}
It is a bit of a pain to have to resort to the typedef. Because I iterate over std::maps quite a lot, I've semi-seriously toyed with the idea of a submitting a feature request for
BOOST_FOREACH_PAIR( std::pair
It is a bit of a pain to have to resort to the typedef. Because I iterate over std::maps quite a lot
Ok, I see... But from the other hand, using containers' inner types helps to ensure that you use the correct type and to avoide stupid bugs like this: http://www.nabble.com/-boost-users--lambda--crash-in-std::for_each-td2180665...
participants (2)
-
Igor R
-
pete@pcbartlett.com