Boost logo

Boost Users :

Subject: Re: [Boost-users] how to help an object to delete itself the boost way
From: John Maddock (jz.maddock_at_[hidden])
Date: 2015-12-17 13:20:18


> In my code there are objects created, which delete themselves. They
> can do it in the constructor, or later in some function. This is
> ugly, and I'm getting some wierd behaviour, probably because of this
> bad design.
>

I'm at a loss to understand how an object can possibly delete itself in
it's own constructor...?

Maybe you were looking for smart pointers to manage object lifetime?

John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net