
15 Apr
2006
15 Apr
'06
7:15 p.m.
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.