नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
syntax error : expected 'keyword1' or 'keyword2'; found type 'keyword3'; non-type parameters are not supported in generics
Remarks
A generic class was declared incorrectly. See Generics for more information.
Example
The following example generates C2978.
// C2978.cpp
// compile with: /clr /c
generic <ref class T> // C2978
// try the following line instead
// generic <typename T> // OK
ref class Utils {
static void sort(T elems, size_t size);
};
generic <int>
// try the following line instead
// generic <class T>
ref class Utils2 {
static void sort(T elems, size_t size);
};