'function' : static member function cannot override virtual function 'virtual function'
override ignored, virtual function will be hidden
The static member function meets the criteria to override the virtual function, which makes the member function both virtual and static.
The following code generates C4526:
// compile with cl /c struct myStruct1 { virtual void __stdcall func( int ) = 0; }; struct myStruct2: public myStruct1 { static void __stdcall func( int ); };
The following are possible fixes: