[c++ korea] effective modern c++ study item 4 know how to view deduced types +이윤지
Post on 19-Jul-2015
203 Views
Preview:
TRANSCRIPT
Effective Modern C++ StudyC++ Korea
Effective Modern C++ StudyC++ Korea3
Effective Modern C++ StudyC++ Korea4
Const int *y
int x
Effective Modern C++ StudyC++ Korea5
error C2079: 'xType'은(는) 정의되지않은class 'TD<int>'을(를) 사용합니다.
error C2079: 'yType'은(는) 정의되지않은class 'TD<const int *>'을(를) 사용합니다.
인스턴스화할템플릿정의가없다
Effective Modern C++ StudyC++ Korea6
Microsoft’s compiler
int
int const *
GNU and Clang compilers
i
PKi
i means int
PK means pointer to konst const
Effective Modern C++ StudyC++ Korea7
Microsoft’s compiler
T : class Widget const *
Param : class Widget const *
GNU and Clang compilers
PK6Widget
PK6Widget
(const Widget*)
top related