Export (0) Print
Expand All
Expand Minimize

Compiler Error C2943

Visual Studio 6.0

'class' : template-class-id redefined as a type argument of a template

There was an attempt to use the templated class as a type argument for a template. Use a symbol to take the type argument of a template.

The following example causes this error:

template<class T> class List {};
template<class List<int> > class MyList;   // error
© 2015 Microsoft