[mythtv] [mythtv-commits] Ticket #1992: Warning fixes

Daniel Kristjansson danielk at cuymedia.net
Mon Jun 26 21:59:46 UTC 2006


On Mon, 2006-06-26 at 22:40 +0100, Stuart Auchterlonie wrote:
> On Mon, Jun 26, 2006 at 06:01:35PM -0000, MythTV wrote:
> > #1992: Warning fixes
> I'd vote for fixing the destructors. Here's some info from those who 
> deal in reliable C++ coding
> http://www.codingstandard.com/HICPPCM/Section_3.3_Class_Inheritance.html
> and in particular
> http://www.codingstandard.com/HICPPCM/Rule_3.3.2.html

The classes should never be deleted via pointers to these interfaces;
doing so would be wrong on so many levels that it isn't even funny.
I came up with the virtual destructor rule for my underlings long
before Effective C++ was written. But there are times when the
these rules of thumb do not apply, this is why they are rules of
thumb and are not required by the language.

-- Daniel



More information about the mythtv-dev mailing list