When a subclass overrides the base class method, all overloads of the base class are not available from the subclass. To use them, a string must be added to the subclass using BaseClass::Method;.
using BaseClass::Method;
Is there a quick way to overload the base layer overloads for ALL overridden methods? (no need to explicitly specify using ...for each method)
using ...
No. This is only possible with an ad usingand only works with individual methods.
using
, , ...
class Base{ public: void foo(){} }; class Derived : public Base { public: void foo(int){} }; int main() { Derived d; *d.Base::foo();* // like this }
Source: https://habr.com/ru/post/1718998/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1718993/wildcards-to-regex-in-vs-find-replace&usg=ALkJrhhpEpM4Q9wcHMa_vW30e9mbNpcpOAHow long can memory leaks persist in RPGLE programs? - memory-managementMdx String Generator - sql-serverC # print form - image is blurred - c #Проблемы с web.config и app.config - asp.netGet multi-page recording with Google engine - google-app-engineПреобразование DateTime в nvarchar, только месяц и год - sql-serverWhy is the number 16 converted to float (6.1026988574311E_320) using PHP using Zend_Amf - floating-pointMVC more than one form to submit - asp.net-mvcEntering the identifier in in ASP.NET MVC - cssAll Articles