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 C2576

'identifier' : virtual used for static member function

A static member function is declared as virtual. The object that calls a function must determine which virtual function is used. This is not possible for static functions, so they cannot be declared virtual.

The following sample generates C2576:

struct X {
   static virtual void func() {   // C2576, remove virtual to resolve error
   }
};

void main() {
}