This documentation is archived and is not being maintained.

Compiler Error C3113

an 'structure' cannot be a template

You attempted to make a class template out of an interface or an enum.

The following example:

// C3113.cpp
template<typename T>
__interface IMyInterface { // C3113
};
int main() {
}

Generates C3113 because you cannot templatize an interface.

Show: