C++ Logo


Advanced search

Subject: Re: [std-proposals] Make abstract classes non-deletable if no virtual destructor available
From: Ville Voutilainen (ville.voutilainen_at_[hidden])
Date: 2020-03-23 15:35:28

On Mon, 23 Mar 2020 at 22:30, Vishal Oza via Std-Proposals
<std-proposals_at_[hidden]> wrote:
> I not sure if this should be an error or the compiler should generate the public virtual destuctor. I learn toward having the compiler generate the public virtual destuctor.

No. The language should not guess intent and generate code based on
one result of such guesses.

The idea seems superficially valid to me.

STD-PROPOSALS list run by herb.sutter at gmail.com

Standard Proposals Archives on Google Groups