Possible Duplicate:
Where and why do I have to put the “template” and “typename” keywords?
I have written:
template<class T>
typename list<T>::iterator partition(list<T> &, list<T>::iterator, list<T>::iterator);
but my compiller found an error:
error: ‘std::list::iterator’ is not a type
What is wrong with this function?
Try: