הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'instantiation' with the provided template arguments is not the explicit instantiation of any member function of 'type'
Remarks
The compiler detected an attempt to make an explicit function instantiation; however, the provided type arguments do not match any of the possible functions.
Example
The following example generates C3190:
// C3190.cpp
// compile with: /LD
template<class T>
struct A {
A(int x = 0) {
}
A(int x, int y) {
}
};
template A<float>::A(); // C3190
// try the following line instead
// template A<int>::A(int);
struct Y {
template<class T> void f(T);
};
template<class T> void Y::f(T) { }
template void Y::f(int,int); // C3190
template<class OT> class X {
template<class T> void f2(T,OT);
};
template<class OT> template<class T> void X<OT>::f2(T,OT) {}
template void X<float>::f2<int>(int,char); // C3190
// try one of the following lines instead
// template void X<char>::f2(int, char);
// template void X<char>::f2<int>(int,char);
// template void X<char>::f2<>(int,char);