Compiler Error C2947
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error C2947

Error Message

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 {};
© 2016 Microsoft