
13 Dec
2008
13 Dec
'08
4:19 a.m.
Cannot figure out how to properly use lambda library in following situation (pseudo-code below): class Unit { }; class Test { public: void dosmth(Unit* unit) {} }; int main() { vector<Unit*> lst; Test t; for_each (lst.begin(), lst.end(), ?// I want to call t.dosmth with each Unit* in list } Any help will be greatly appreciated.