C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] Specific Override Specifier
From: Ville Voutilainen (ville.voutilainen_at_[hidden])
Date: 2020-03-18 08:39:45


On Wed, 18 Mar 2020 at 15:29, Tony V E via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>> Suggestion, specific override specifier:
>>
>> virtual int lock_mutex() override(int B::lock());
>> virtual int lock_device() override(int C::lock());
>>
>>
>
> I'd suggest a different syntax:
>
> class A : public B, public C
> {
> virtual int B::lock() override;
> virtual int C::lock() override;
> };

That does something different, it doesn't rename the functions.


STD-PROPOSALS list run by herb.sutter at gmail.com

Standard Proposals Archives on Google Groups