adding destroyable objects into Ggc
Jonathan Wakely
jwakely.gcc@gmail.com
Tue Oct 18 18:39:00 GMT 2011
On 18 October 2011 16:12, Basile Starynkevitch wrote:
>
> Of course, with C++, the destructor routine is really what C++ calls a destructor, e.g
> something like extern "C" void my_destructor_for_class_C (class C* p)
> { delete (p) p; // call the placement version of operator delete, from <new> C++ library
> header. }
Why not just call the destructor?
p->~C()
More information about the Gcc
mailing list