This topic has not yet been rated - Rate this topic

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{};
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Advertisement