|
Boost Users : |
From: Meryl Silverburgh (silverburgh.meryl_at_[hidden])
Date: 2006-02-17 00:41:09
I have a list of A pointers:
vector <A*> aVector;
And i have a function which takes a A reference.
void myFunc(A& a);
how can I loop thru aVector to call myFunct?
for_each (aVector;.begin(), aVector;.end(), bind (&myFunc, _1)); //
does not compile.
Thanks for any help.
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