$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.