Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 619 Bytes

compiler-error-c2674.md

File metadata and controls

24 lines (19 loc) · 619 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2674
Compiler Error C2674
11/04/2016
C2674
C2674
7cbd70d8-d992-44d7-a5cb-dd8cf9c759d2

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