नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'class' : invalid expression as a template argument for 'argument'
Remarks
When using /Za, the compiler will not convert an integral to a pointer.
Example
The following example generates C2762:
// C2762.cpp
// compile with: /Za
template<typename T, T *pT>
class X2 {};
void f2() {
X2<int, 0> x21; // C2762
// try the following line instead
// X2<int, static_cast<int *>(0)> x22;
}