Re: Best way to "redefine" a std class

From: James Rafter (jjr2004a_at_yahoo.com)
Date: 12/08/04


Date: 7 Dec 2004 18:48:07 -0800

In general, C++ classes which were intended to be inherited from, have
virtual destructors. This is something the STL containers do not have
and so were not intended to serve as base classes.



Relevant Pages

  • Re: Best way to "redefine" a std class
    ... virtual destructors. ... This is something the STL containers do not have ... and so were not intended to serve as base classes. ...
    (comp.lang.cpp)
  • Re: the c# return statement
    ... If your base classes have virtual destructors (which all base ... I believe you'll find that I'm using the Factory pattern. ... base classes should ALWAYS have virtual destructors. ... It's not common practice on real time systems. ...
    (microsoft.public.dotnet.general)
  • Re: Inheriting from STL bitset
    ... "Pete Becker" wrote in message ... > Ivan Vecerina wrote: ... >> intended to serve as bases even though they have no virtual destructors. ...
    (comp.lang.cpp)