Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
redefinition of type parameter 'parameter'
Remarks
There was a type conflict between two generic or template definitions of parameter. When defining multiple generic or template parameters, you must use equivalent types.
Examples
The following example generates C2991:
// C2991.cpp
// compile with: /c
template<class T, class T> struct TC {}; // C2991
// try the following line instead
// template<class T, class T2> struct TC {};
C2991 can also occur when using generics:
// C2991b.cpp
// compile with: /clr /c
generic<class T,class T> ref struct GC {}; // C2991
// try the following line instead
// generic<class T,class T2> ref struct GC {};