C++ Logo


Advanced search

Re: [std-proposals] Detect non overriden function

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sun, 20 Mar 2022 20:30:33 -0300
On Saturday, 19 March 2022 12:56:56 -03 organicoman wrote:
> So if i had a compiler warning telling me, "watchout, you are using the base
> class implementation", the first move is to check if the base class
> implementation covers my derived case.

The standard cannot help you with warnings. The standard only says whether
something is correct. Everything else is either ill-formed or under-specified.

The compilers choose what they want to provide as warnings.

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

Received on 2022-03-20 23:30:50