Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-09-08 02:29:06

Larry Evans wrote:

> Philippe A. Bouchard wrote:
>>I'll start by adding a "forced" destruction member. It will decrement the
>>pointer, followed by a self-destruct placed_ptr call. This way at least
>>the programmer will be able to free his own cyclic container.
>>... or maybe operator delete could be displaced for placed_ptr<> or other
>>rc pointer types. What do you think?
> I don't understand. Could you provide examples?

I've uploaded a new placed_ptr.hpp version using simple gc & explicit
cyclic_ptr destruction (operator new now overloaded with gc_type):

(I'll wait for Larry & Greg for their best implicit cyclic_ptr destruction


Philippe A. Bouchard

Boost list run by bdawes at, gregod at, cpdaniel at, john at