नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'declaration' : type declaration missing template parameter list
Remarks
A template declaration was ill formed.
Examples
The following example generates C2952:
// C2952.cpp
// compile with: /c
template <class T>
struct S {
template <class T1>
struct S1 {
void f();
};
};
template <class T> void S<T>::S1<T>::f() {} // C2952
// OK
template <class T>
template <class T1>
void S<T>::S1<T1>::f() {}
C2952 can also occur when using generics:
// C2952b.cpp
// compile with: /clr /c
generic <class T>
ref struct GC {
generic <class T1>
ref struct GC1 {
void f();
};
};
generic <class T> void GC<T>::GC1<T>::f() {} // C2952
// OK
generic <class T>
generic <class T1>
void GC<T>::GC1<T1>::f() {}