비주얼 스튜디오 2005에서 난 에러.
Error 2 error C3203: 'iterator' : unspecialized class template can't be used as a template argument for template parameter '_Ty1', expected a real type ...
템플릿 함수내에서 템플릿 파라미터가 들어간 이터레이터를 선언했더니 저렇게 뜬다.
못 쓰는 건가.ㅠㅜ
라고 생각했는데
전에 내가 검색한 Naver 지식IN에서 찾았다.ㅣ;;
게다가 전에 그걸 긁어서 포스팅까지 했는데 ㅠㅜ
간단히 말하면 typename 을 앞에 붙여주는 것이 해답.
'Application-level프로그래밍' 카테고리의 다른 글
(C++) 스트림 클래스의 eof() 의 리턴값 (0) | 2010.08.18 |
---|---|
(C++) fstream 이용하기 (0) | 2010.08.18 |
(C) main() 의 인자. (0) | 2010.08.17 |
Side effect (0) | 2010.01.22 |
20 issues of porting C++ code on the 64-bit platform (0) | 2010.01.15 |