17 Jul
2008
17 Jul
'08
2:09 p.m.
typedef boost::function
functor; std::vector<functor> functors; ... using namespace boost::lambda; std::for_each( functors.begin(), functors.end(), bind(&functor::operator(),_1));
Oh, I see... So the explicit bind is unavoidable :(. Is there any reason for this? After all, lambda allows compact expressions like _1 = 1 , so why wouldn't it allow _1() ?