Compiler Error C2906
'specialization' : explicit specialization requires 'template <>'
You must use the new syntax for explicit specialization of templates.
The following sample generates C2906:
// C2906.cpp
// compile with: /c
template<class T> class X{}; // primary template
class X<int> { } // C2906
template<> class X<int> { }; // new syntax
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