>> >You can't delete this on an automatic object. What does placement new
have >to do with anything?
Nothing. Who said that?
A sad Jonathan
Quote '(assuming a placement new will be made)'.
Just trying to understand your point, not pick an argument. Perhaps you
could illustrate with some code.
I think irony does not travel very well through cable modems.
I don't know why I said that, I even started an answer like
class A
{
public:
void f()
{
delete this;
this =
and then
const_cast<A*>(this) =
and worst
const_cast<A*>(this) = new (this) A;
before understanding the profound stupidity of my point. I then made
a joke, hoping nobody would notice. Too bad :)
Sorry about that,
Jonathan