C++ Logo

std-proposals

Advanced search

Re: Conditional final class-virt-specifier

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Wed, 15 Jul 2020 23:19:46 +0300
On Wed, 15 Jul 2020 at 23:15, Paweł Benetkiewicz via Std-Proposals
<std-proposals_at_[hidden]> wrote:
> > ..and why is that important to be able to do? If I can't construct a base class, that seems to prevent using it as a base class sufficiently well.
> Disallowing constructing a class does not disallow inheriting from it, same as disallowing initializing a class does not disallow inheriting from it.

So what? That doesn't explain why there is a need to disallow
inheritance, rather than disallowing the ability to initialize
an object as a base subobject.

Received on 2020-07-15 15:23:14