Resolving the ambiguity when your C++ class inherits from multiple base classes that have the same method

1 · Raymond Chen · Aug. 13, 2021, 2:42 p.m.
Suppose you have a class which derives from two base classes, both of which have the same method. struct Base1 { void Something(); bool IsReady(); }; struct Base2 { void Something(); bool IsReady(); }; struct Derived : Base1, Base2 { }; The post Resolving the ambiguity when your C++ class inherits from multiple base classes that have the same method appeared first on The Old New Thing....