#include #include #include template class A { public: typedef typename std::vector
You are again missing the typename in the return value. The function should be:
template std::pair >::iterator, bool > A::foo() { iterator aIter; return std::pair >::iterator, bool >(aIter ,false); }