2009/8/18 Björn Karlsson <Bjorn.Karlsson@readsoft.com <mailto:Bjorn.Karlsson@readsoft.com>>
2) Use Boost.Lambda's bind() and dereference the placeholder
directly in the bind expression.
for_each(vec.begin(), vec.end(), bind(&foo, *_1));
Much as I like Lambda for virgin code, in my work code base there's a very visible inclusion
of Boost.Bind, with placeholders in the global namespace. I've concluded that the pain of clashing
placeholders just isn't worth it, so I steer clear of Lambda now.
Thanks Bjorn.
- Rob.