$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.