“identifier”:没有为显式模板实例化请求提供适当的定义
未定义模板类的成员。
示例
// C4661.cpp
// compile with: /W1 /LD
template<class T> class MyClass {
public:
void i(); // declaration but not definition
};
template MyClass< int >; // C4661
“identifier”:没有为显式模板实例化请求提供适当的定义
未定义模板类的成员。
// C4661.cpp
// compile with: /W1 /LD
template<class T> class MyClass {
public:
void i(); // declaration but not definition
};
template MyClass< int >; // C4661