[c++ korea] effective modern c++ study item 4 know how to view deduced types +이윤지

7

Click here to load reader

Upload: giyeon-bang

Post on 19-Jul-2015

203 views

Category:

Software


0 download

TRANSCRIPT

Page 1: [C++ korea] effective modern c++ study item 4 know how to view deduced types +이윤지

Effective Modern C++ StudyC++ Korea

Page 2: [C++ korea] effective modern c++ study item 4 know how to view deduced types +이윤지
Page 3: [C++ korea] effective modern c++ study item 4 know how to view deduced types +이윤지

Effective Modern C++ StudyC++ Korea3

Page 4: [C++ korea] effective modern c++ study item 4 know how to view deduced types +이윤지

Effective Modern C++ StudyC++ Korea4

Const int *y

int x

Page 5: [C++ korea] effective modern c++ study item 4 know how to view deduced types +이윤지

Effective Modern C++ StudyC++ Korea5

error C2079: 'xType'은(는) 정의되지않은class 'TD<int>'을(를) 사용합니다.

error C2079: 'yType'은(는) 정의되지않은class 'TD<const int *>'을(를) 사용합니다.

인스턴스화할템플릿정의가없다

Page 6: [C++ korea] effective modern c++ study item 4 know how to view deduced types +이윤지

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

Page 7: [C++ korea] effective modern c++ study item 4 know how to view deduced types +이윤지

Effective Modern C++ StudyC++ Korea7

Microsoft’s compiler

T : class Widget const *

Param : class Widget const *

GNU and Clang compilers

PK6Widget

PK6Widget

(const Widget*)