Compiler Error C2913
explicit specialization; 'declaration' is not a specialization of a class template
You cannot specialize a non-template class.
The following sample generates C2913:
// C2913.cpp
// compile with: /c
class X{};
template <class T> class Y{};
template<> class X<int> {}; // C2913
template<> class Y<int> {};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for