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 C2947

'identifier' : cannot specialize a template-class with a reference to a local-extern

A template specialization uses the address of a variable or function whose first declaration occurs in a local extern context.

Example

template<int* p> class X {};
void func ()
{
    extern int i;
    X<&i> object;   // error 
}