adding destroyable objects into Ggc

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Oct 18 22:43:00 GMT 2011


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.



More information about the Gcc mailing list