共用方式為


編譯器錯誤 C2929

'identifier': 明確具現化 (Explicit Instantiation); 無法強制地將樣板類別 (Template-Class) 成員具現化

您無法明確具現化識別項,同時又防止它具現化。

下列範例會產生 C2929:

// C2929.cpp
// compile with: /c
template<typename T>
class A {
public:
   A() {}
};

template A<int>::A();

extern template A<int>::A();   // C2929