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 C2951

template declarations are only permitted at global or namespace scope

You cannot declare a template outside global or namespace scope. If you make your template declarations in an include file, make sure the include file is at global scope.

Example

void main()
{
   template <class T> class A {};  // error
}