🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1988

Re: placement delete

#1988
From: Sam Fenster
Date: Tue, 19 Sep 1995 01:33
16 lines
1310 bytes
rmartin@rcmcon.com (Robert Martin) writes:
> That thread also suggested that the only way to explicitly call placement
> delete would be to overtly call the appropriate operator delete.  e.g.
> 
> 	operator delete (object, arg1, arg2);

In fact, wouldn't you have to call `operator delete' with the address of the
most derived subclass object?  How would you do that?

> Now, as I understand it, such a call will not cause the destructor of the
> object to be called.  Thus, of one is to invoke the placement syntax of
> operator delete, one must first explicitly call the destructor.
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <FENSTER.95Sep18204129@shadow.cs.columbia.edu>
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
References: <MATT.95Sep18143159@physics10.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
Date: 19 Sep 95 01:33:05 GMT
Approved: fjh@cs.mu.oz.au
From: fenster@cs.columbia.edu (Sam Fenster)
Newsgroups: comp.std.c++
Subject: Re: placement delete
X-Original-Date: 19 Sep 1995 00:41:29 GMT
Organization: Columbia University Department of Computer Science
Message-ID: <FENSTER.95Sep18204129@shadow.cs.columbia.edu>
References: <MATT.95Sep18143159@physics10.Berkeley.EDU>
In-Reply-To: rmartin@rcmcon.com's message of 18 Sep 1995 21:31:59 GMT