Boost logo

Boost :

Subject: Re: [boost] [block_ptr] & Java
From: microcai (microcaicai_at_[hidden])
Date: 2013-09-02 06:22:56


>>>
>>> +-> 1 -------> 2 -+
>>> | |
>>> +-----------------+
>>>
>>> +-> 1 -+ +-> 2 -+
>>> | | | |
>>> +------+ +------+
>>

have a container to hold smart pointer to every object , and let them use
weak pointer to each other. thus cyclic avoided. cyclic means wrong
"owner". if 2 is not owned by 1, how can you use shared pointers?


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