Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #12033

Re: only call dtor of derived class?

From Victor Bazarov <v.bazarov@comcast.invalid>
Newsgroups comp.lang.c++
Subject Re: only call dtor of derived class?
Date 2011-12-02 16:50 -0500
Organization A noiseless patient Spider
Message-ID <jbbh76$snv$1@dont-email.me> (permalink)
References <cu5id7l8bgtqdmm8udluq4batgujd09cpd@4ax.com>

Show all headers | View raw


On 12/2/2011 1:50 PM, Heck wrote:
> Can it be (easily) arranged to call only the destructor of a derived
> class, and call none of the destructors in the classes from which it
> derives?  This may seem to seek to negate the simple and compelling
> value of the destructor tree, so, perhaps my design is flawed,[..]

No, and certainly.

V
-- 
I do not respond to top-posted replies, please don't ask

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

only call dtor of derived class? Heck <heckja_in@ordertostymieharvestersverizon.net> - 2011-12-02 13:50 -0500
  Re: only call dtor of derived class? Victor Bazarov <v.bazarov@comcast.invalid> - 2011-12-02 16:50 -0500
    Re: only call dtor of derived class? Heck <heckja_in@ordertostymieharvestersverizon.net> - 2011-12-03 22:01 -0500
  Re: only call dtor of derived class? jt@toerring.de (Jens Thoms Toerring) - 2011-12-03 00:32 +0000
    Re: only call dtor of derived class? Heck <heckja_in@ordertostymieharvestersverizon.net> - 2011-12-03 22:07 -0500
      Re: only call dtor of derived class? Heck <heckja_in@ordertostymieharvestersverizon.net> - 2011-12-04 18:08 -0500
        Re: only call dtor of derived class? Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2011-12-04 22:07 -0500
          Re: only call dtor of derived class? Stuart Redmann <DerTopper@web.de> - 2011-12-04 23:36 -0800
            Re: only call dtor of derived class? Werner <werasm@gmail.com> - 2011-12-05 00:53 -0800
              Re: only call dtor of derived class? Stuart Redmann <DerTopper@web.de> - 2011-12-05 04:33 -0800
              Re: only call dtor of derived class? Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2011-12-11 18:47 -0500
            Re: only call dtor of derived class? Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2011-12-11 18:26 -0500
          Re: only call dtor of derived class? Juha Nieminen <nospam@thanks.invalid> - 2011-12-05 13:00 +0000
          Re: only call dtor of derived class? Goran <goran.pusic@gmail.com> - 2011-12-05 05:12 -0800
            Re: only call dtor of derived class? Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2011-12-11 17:02 -0500

csiph-web