|
Boost : |
From: John Torjo (john.lists_at_[hidden])
Date: 2003-10-10 13:21:27
>
> On the one hand, I very much like the idea of being able to say
>
> BOOST_FOREACH( int &i, int_list ) {
> yadda();
> }
>
what happened to
std::for_each( int_list.begin(), int_list.end(), boost::bind( ...whatever
yadda...) );
I think this is the wrong solution to the problem.
A better solution IMHO is to have ranges.
A range contains both a begin & end, and could somehow be treated like this:
range r;
while ( r) {
// whatever
++r;
}
But anyway, use boost::bind whenever possible. It's a blast!!!
Best,
John
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk