On December 17, 2015 9:50:20 PM EST, Richard Damon
On 12/17/15 3:15 PM, Ireneusz Szcześniak wrote:
Hi Ian,
Thanks for your email. I only wonder how an object should trigger its deletion...
Best, Irek The big issue that I see is how do you know that the object was created
via new? (that is the only sort of object that CAN be deleted).
Also, if the object deletes itself, it somehow must make sure that no one else has kept a copy of its address and might try to access after it has deleted itself.
Both of these questions, and some of your comments, point somewhat to the idea that it might not be the object that wants to delete itself, but that the object may be part of some framework, and it should inform
the framework that it is done, and the framework can then remove the object and delete it.
Exactly my observations. Some supervising, managing, contextual pattern must be in play.
-- Richard Damon
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.