std::vector<T>::iterator is a type that is dependent on a template parameter, namely T. Therefore, you should prefix with it typename:
template<typename T>
void foo(typename std::vector<T>::iterator & i)
{
}
GMan
2010-08-09 20:50:45