Article View: comp.std.c++
Article #1996Re: placement delete
From: Bill Gibbons
Date: Wed, 20 Sep 1995 08:38
Date: Wed, 20 Sep 1995 08:38
23 lines
1272 bytes
1272 bytes
In article <FENSTER.95Sep18204129@shadow.cs.columbia.edu>,
fenster@cs.columbia.edu (Sam Fenster) wrote:
> 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?
operator delete (dynamic_cast<void*>(object), arg1, arg2);
--
Bill Gibbons
bgibbons@taligent.com
---
[ 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:
<MATT.95Sep20003834@Austern>Path:
arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!MattReferences:
<MATT.95Sep18143159@physics10.Berkeley.EDU> <FENSTER.95Sep18204129@shadow.cs.columbia.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!Matt From: bgibbons@taligent.com (Bill Gibbons) Newsgroups: comp.std.c++ Subject: Re: placement delete Date: 20 Sep 1995 08:38:34 GMT Organization: Taligent, Inc. Approved: Matt@Austern Message-ID: <MATT.95Sep20003834@Austern> References: <MATT.95Sep18143159@physics10.Berkeley.EDU> <FENSTER.95Sep18204129@shadow.cs.columbia.edu> NNTP-Posting-Host: austern.hip.berkeley.edu