नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'template' : more than one partial specialization matches the template argument list
Remarks
An instantiation was ambiguous.
Example
The following example generates C2752:
// C2752.cpp
template<class T, class U>
struct A {};
template<class T, class U>
struct A<T*, U> {};
template<class T, class U>
struct A<T,U*> {};
// try the following line instead
// template<class T, class U> struct A<T*,U*> {};
int main() {
A<char*,int*> a; // C2752 an instantiation
// OK
A<char*,int> a1;
A<char,int*> a2;
A<char,int> a3;
}