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
> 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
> -- and I'm trying to show that the same pitfall occurs in STL, but the
> community still agrees that the use of STL algorithm invocations is
> 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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at