C++ Logo

std-proposals

Advanced search

Re: Specific Override Specifier

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Wed, 18 Mar 2020 15:39:45 +0200
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.

Received on 2020-03-18 08:42:45