
14 Feb
2006
14 Feb
'06
10:42 p.m.
I have a int vector, and I would like to loop thru the vector and call a function which takes an int (in this case, I want to print). void A::aFunction() { vector<int> aVector; aVector.push_back(1); aVector.push_back(2); aVector.push_back(3); aVector.push_back(4); // want to loop thru the list and call A::print(int i)? } void A::print(int i) { } how can I do that using boost bind library?