王中王 ·
·
阅读: 473
W8022 'function1' hides virtual function 'function2'
(Command-line option to suppress warning: -w-hid)
A virtual function in a base class is usually overridden by a declaration in a derived class.
In this case, a declaration with the same name but different argument types makes the virtual functions inaccessible to further derived classes.