From: Roman (Roman.Krylov_at_[hidden])
Date: 2005-03-03 08:27:36


Taking into account "Lambda expressions in details"->"Construction and destruction" docs,
perhaps this way:

std::for_each(foos.begin(), foos.end(),

              _1 = bind(constructor<shared_ptr<Foo> >(),bind(new_ptr<Foo>())) );

Didn't try to compile, only guess :)