On Tue, 18 Oct 2011 19:39:03 +0100
Jonathan Wakely <jwakely....@gmail.com> wrote:
> 3) the placement delete in <new> is a no-op

I thought every delete in C++ calls the destructor, and that the placement 
delete does
only that. I mean that a delete statement does two things: invoke the 
destructor first,
and then does whatever the operator delete does (which for the placement delete 
operator
is indeed a no-op).

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


Cheers.


-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***

Reply via email to