नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'specialization' : a partial specialization cannot have a dependent non-type template parameter
Remarks
An attempt was made to partially specialize a template class that has a dependent non-type template parameter. This is not allowed.
Example
The following example generates C2754:
// C2754.cpp
// compile with: /c
template<class T, T t>
struct A {};
template<class T, int N>
struct B {};
template<class T> struct A<T,5> {}; // C2754
template<> struct A<int,5> {}; // OK
template<class T> struct B<T,5> {}; // OK