Search code examples
c++inheritanceoverloadingusing-statementoverriding

Using all overloads of the base class


When a subclass overrides a baseclass's method, all of the baseclass's overloads are not available from the subclass. In order to use them there should be added a using BaseClass::Method; line in the subclass.

Is there a quick way to inheirt the baseclass's overloads for ALL of the overridden methods? (not needing to explicitly specify using ... for each method)


Solution

  • No. It's only possible with a using declaration and that only works with the individual methods.