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 C2970

'class' : template argument 'parameter' : invalid use of static variable 'variable' as non-type argument

You cannot use the name or address of a static variable as a template argument. For example, the following code shows how this error would be generated:

// compile with cl /c
//
static int si;   // cannot use static variable in templates
template <int i> class X {};
template <int *pi> class Y{};
X<si> anX;
Y<&si> aY;