C++ Logo

std-proposals

Advanced search

Re: [std-proposals] enable very strict use of 'virtual', 'override', etc.

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 02 May 2023 08:01:49 -0700
On Tuesday, 2 May 2023 07:21:05 PDT Frederick Virchanza Gotham via Std-
Proposals wrote:
> If the compiler would enforce these rules, it would be easier to clean
> up old code.

The original virtual override-marking proposal back before C++11 had such
things. It was dropped and updated to only have the override and final
contextual keywords.

Your proposal needs to reflect back to that proposal, explain how it's different
from it and avoids the mistakes that doomed that proposal. We also now have
over 10 years of experience with the current keywords, so you need to reflect
the state of the art and how compilers warn these days (the "inconsistent use
of override" warning).

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

Received on 2023-05-02 15:01:51