NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2902

'token' : unexpected token following 'template', identifier expected

The token following the keyword template was not an identifier.

Example

namespace N {
   template<class T> class X {};
   class Y {};
}
void f() {
   N::template X<int> x1; // legal
}
void g() {
   N::template + 1; // error C2902
}