Boost logo

Boost :

From: Gary Powell (powellg_at_[hidden])
Date: 2002-03-22 11:39:09


// this gets me a shedload of compilation errors
std::for_each(Vec.begin(), Vec.end(), boost::bind(&MyClass::MyMethod2,
_1, _2, boost::ref(something1), boost::ref(something2)));

---------------------
That's because "for_each" only passes in 1 argument. (_1)

  -Gary-


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk