Compiler Error C2998
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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
Show: