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