Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-04-15 15:15:56


Tomas Puverle wrote:
>> shared_ptr doesn't use atomic_count because the addition of weak_ptr
>> has made atomic_count's interface insufficient.
>
> Can you please elaborate on what you mean? Are you saying that you
> cannot implement atomic refcouting because of weak pointers?

No.

I am saying that the sort of atomic reference counting needed by shared_ptr
can't be implemented on top of the current interface (and implementation) of
boost::detail::atomic_count.


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