C++ Logo


Advanced search

Subject: Re: [std-proposals] Specific Override Specifier
From: Michał Policht (michal_at_[hidden])
Date: 2020-03-18 09:37:38

> I'd suggest a different syntax:
> class A : public B, public C
> {
>    virtual int B::lock() override;
>    virtual int C::lock() override;
> };
> but I've only needed this rarely; I suspect it probably isn't worth the
> trouble.

With such syntax you could get rid of `override`, since it can be
deduced (maybe even `virtual`, but some language rules might prevent this).


STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups