Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-09-17 08:46:50


Hi,

        I do not know why I haven't thought of this one before but I've
implemented ownership support in placed_ptr<>. Now I would suggest
container writers to use ownership for their node allocations... this way
cyclic reference counts could be easily avoided. placed_ptr<>::clear() has
been removed also.

        Another thing... it would be great to define when exactly an object should
be destructed. This is not clear.

        Here are placed_ptr.hpp and placed_ptr_test.cpp with rc, simple gc & os:

http://groups.yahoo.com/group/boost/files/ptr/

        I think I will need to implement some operator = (U *)...?

-- 
Philippe A. Bouchard

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk