Compiler Error C2943
'class' : type-class-id redefined as a type argument of a template
You can't use a generic or template class, instead of a symbol, as a generic or template type argument.
This error is obsolete in Visual Studio 2022 and later versions.
The following sample generates C2943:
// C2943.cpp
// compile with: /c
template<class T>
class List {};
template<class List<int> > class MyList; // C2943
template<class T > class MyList;
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for