Compiler Error C2674
a generic declaration is not allowed in this context
A generic was declared incorrectly. For more information, see Generics.
Example
The following sample generates C2674.
// C2674.cpp
// compile with: /clr /c
void F(generic <class T> ref class R1); // C2674
generic <class T> ref class R2 {}; // OK
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