Subject: Re: [std-proposals] Specific Override Specifier
From: Sebastian BÃ¼ttner (sebastian.buettner_at_[hidden])
Date: 2020-03-18 06:15:25
On 3/18/20 7:01 AM, Thiago Macieira via Std-Proposals wrote:
> On Tuesday, 17 March 2020 11:12:32 PDT Ryan Nicholl via Std-Proposals wrote:
>> class A : public B, public C
>> virtual int lock();
>> what happens if both B::lock and C::lock exist as virtual functions? we can
>> override them both with one function... but what if they are interfaces
>> that do different things and happen to use the same name?
> Then you have an API design problem and it should be solved at that level.
The motivation you provide is insufficient in my opinion. At least
considering your example this is not a language problem.
STD-PROPOSALS list run by herb.sutter at gmail.com
Standard Proposals Archives on Google Groups