shared_ptr_memory_leak_4
a (shared_ptr<Foo>)
{
維護
new Foo
強計數
(2)
存儲
other (
b
)
b
(shared_ptr<Foo>)
{
維護
new Foo
強計數
(1)
存儲
other (a)