Compiler Error C2947

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

expecting '>' to terminate construct, found 'syntax'

A generic or template argument list may not have been terminated correctly.

C2947 can also be generated by syntax errors.

The following sample generates C2947:

// C2947.cpp  
// compile with: /c  
template <typename T>=   // C2947  
// try the following line instead  
// template <typename T>  
struct A {};  

Show: