नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'function': illegal use of explicit template arguments
Remarks
The compiler was unable to determine if a function definition was an explicit specialization of a function template or if it was a new function.
This error was introduced in Visual Studio .NET 2003, as part of the compiler conformance enhancements.
Example
The following example generates C2768:
// C2768.cpp
template<typename T>
void f(T) {}
void f<int>(int) {} // C2768
// an explicit specialization
template<>
void f<int>(int) {}
// global non-template function overload
void f(int) {}