'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;