Compiler Error C3619
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Compiler Error C3619

Error Message

a template cannot be declared within a managed type

Class templates are not allowed in a managed class or interface.

C3619 is only reachable using /clr:oldSyntax.

The following sample generates C3619:

// C3619.cpp
// compile with: /clr:oldSyntax
#using <mscorlib.dll>

__gc class X {
   template<typename T> class Y {   // C3619
   };
};
Show:
© 2016 Microsoft