C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Derived class's function invokes base class's function

From: Thiago Macieira <thiago_at_[hidden]>
Date: Fri, 15 Apr 2022 20:36:56 -0700
On Friday, 15 April 2022 16:11:42 PDT Frederick Virchanza Gotham via Std-
Proposals wrote:
> int Func(void) continue
> {
> return 5;
> }

How about this use-case:

bool Klass::func(int &r)
{
    if (this->Base1::func(r))
        return true;
    if (this->Base2::func2(r))
        return true;
    r = 3;
    return false;
}

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DPG Cloud Engineering

Received on 2022-04-16 03:36:58