What does this error mean?
I know I am performing my erase method wrong. It has to take in an iterator, correct? How do I create an iterator that is pointer to the location i in the list?Code:25 permutation.cpp invalid conversion from `int' to `std::_List_node_base*'
Maybe something like this?
Code:for(int i = 0; i < orig.size(); i++) // line 21
{
list<int> orig2 = orig;
list<int>::iterator iPtr;
iPtr = orig2.begin();
orig2.erase(iPtr);
list<int> perm2 = perm;
perm2.push_front(orig.find(iPtr));
string_permutation(orig2,perm2);
}