#include <iterator>
#include <vector>
template <class T1, class T2 >
class A
{
public:
typename std::vector<std::pair<T1,T2> >::iterator iterator;
std::pair<iterator, bool > foo(const std::pair<T1 ,T2> &value_in);
};
사람이에 대한 몇 가지 빛을 던질 수 2009 Visual Studio에서 컴파일 오류를주고있다? 다음은 오류입니다.
이typename std::vector<std::pair<T1,T2> >::iterator iterator;
는 당신이 찾으 셨나요? 당신은 타입 정의를 필요로
error C2327: 'A<T1,T2>::iterator' : is not a type name, static, or enumerator