Boost logo

Boost Users :

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 :)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net