Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-06-26 10:46:58


From: "Douglas Gregor" <gregod_at_[hidden]>

> Because the arguments are the same. The reasons for using mpl::for_each
or
> mpl::accumulate are the same as the reasons for using std::for_each or
> std::accumulate. You're citing one pitfall of using MPL -- more lines of
code
> -- and I'm trying to show that the same pitfall occurs in STL, but the
C++
> community still agrees that the use of STL algorithm invocations is
preferred
> to hand-coded loops.

I don't think there's universal agreement on that point, at least, not
until you introduce something like Boost.Lambda. However, MPL has lambda
expressions. IMO that can make a huge difference.

-Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk