
17 Feb
2006
17 Feb
'06
5:41 a.m.
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.