SyntaxFix
Write A Post
Hire A Developer
Questions
Your function shouldn't take vector<int>*; it should take vector<int>::iterator or vector<int>::const_iterator as appropriate. Then, just pass in foo.begin() + 1.
vector<int>*
vector<int>::iterator
vector<int>::const_iterator
foo.begin() + 1