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