共用方式為


編譯器警告 (層級 1) C4662

明確具現化 (Explicit Instantiation);樣板類別 'identifier1' 沒有特製化 'identifier2' 用的定義

指定的樣板類別已宣告,但未定義。

範例

// C4662.cpp
// compile with: /W1 /LD
template<class T, int i> class MyClass; // no definition
template MyClass< int, 1>;              // C4662