[Development] override keyword on destructors
Matthew Woehlke
mwoehlke.floss at gmail.com
Thu Aug 23 22:38:18 CEST 2018
On 2018-08-20 09:58, Kevin Funk wrote:
> IMO, it would also be nice to get a compiler warning/error if a
> base class' destructor is changed from virtual to non-virtual which may cause
> subtle behavioral changes such as memory leaks.
You mean something like -Wnon-virtual-dtor?
Granted, it's not *exactly* what I think you're asking for, but how
often do you have a base class with a virtual dtor and *no* other
virtual members?
--
Matthew
More information about the Development
mailing list