Export (0) Print
Expand All
Expand Minimize

Compiler Error C3113

Error Message

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{};

Community Additions

ADD
Show:
© 2014 Microsoft