Boost logo

Boost Users :

Subject: [Boost-users] Confused with Lambda library usage
From: QPlace (quiteplace_at_[hidden])
Date: 2008-12-12 23:19:07


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.


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