Boost logo

Boost Users :

From: Igor R (boost.lists_at_[hidden])
Date: 2008-07-17 07:03:24


Hi,

std::vector<boost::function<void(void)> > functors;
using namespace boost::lambda;
std::for_each (functors.begin(), functor.end(), _1);

The above compiles, but...does nothing. How can I enforce calling of
operator () ?

Thank you in advance!


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