home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!hal.com!hal!brennan
- From: brennan@hal.com (Dave Brennan)
- Newsgroups: comp.std.c++
- Subject: Re: Which delete operator should be called?
- Message-ID: <BRENNAN.92Sep3095303@yosemite.hal.com>
- Date: 3 Sep 92 15:53:03 GMT
- References: <BRENNAN.92Sep3010854@yosemite.hal.com>
- Organization: HaL Computer Systems, Austin, TX
- Lines: 18
- NNTP-Posting-Host: yosemite.hal.com
- In-reply-to: brennan@hal.com's message of 03 Sep 92 07:08:54 GMT
-
- I didn't have my copy of ARM handy when I posted, and I see that it also
- says is 12.4 (p. 278) "When invoked by the delete operator, memory is freed
- by the destructor for the most derived class of the object using an
- operator delete ()."
-
- What it doesn't say is which operator delete. This tends to imply that the
- operator delete of the most derived class should be used, but as my
- previous post showed it is only used when the class being deleted has a
- virtual destructor. This quote implies that the operator delete of the
- most derived class will be called when any object is deleted?
-
- Cany anyone clarify this?
-
- --
- Dave Brennan HaL Computer Systems
- brennan@hal.com (512) 794-2855
-
- Visit the Emacs Lisp Archive: archive.cis.ohio-state.edu:pub/gnu/emacs
-