
15 Apr
2006
15 Apr
'06
6:35 p.m.
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? Didn't 1.33 add atomics support? (Sorry, I haven't looked at the shared_ptr source in a while) Thanks.