Compiler Error C2998
'identifier' : cannot be a template definition
The compiler could not process the syntax used in the template definition.
The following sample generates C2998:
// C2998.cpp
// compile with: /c
template <class T> int x = 1018; // C2998
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