Edit

Share via


Compiler Error C2947

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 {};