This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: adding destroyable objects into Ggc


On Tue, Oct 18, 2011 at 1:48 PM, Basile Starynkevitch
<basile@starynkevitch.net> wrote:

> So I thought that
> ?delete (p) p;
> actually called p->~C()
>

No.  This is one of the reasons why you should not read too much
into "manual storage management".  Most of the time, you don't have
to say delete.  And if you do, think twice.  I suspect that is the design
envisioned for GCC.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]