Compiler Error C2957

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C2957.

delim' : invalid left delimiter : expected '<'

A generic class was ill formed.

The following sample generates C2957:

// C2957.cpp  
// compile with: /clr /LD  
generic << class T>   // C2957  
// try the following line instead  
// generic < class T>  
gc class C {};  

Show: