Compiler Error C3113
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 C3113.
an 'structure' cannot be a template/generic
You attempted to make a class template or class generic out of an interface or an enum.
The following sample generates C3113:
// C3113.cpp
// compile with: /c
template <class T>
enum E {}; // C3113
// try the following line instead
// class MyClass{};
Show: