why weak_ptr can break cyclic reference?

Posted by skydoor on Stack Overflow See other posts from Stack Overflow or by skydoor
Published on 2010-03-03T20:33:41Z Indexed on 2010/03/25 20:03 UTC
Read the original article Hit count: 394

Filed under:
|

I learnt a lot about weak_ptr working with share_ptr to break cyclic reference. How does it work? How to use that? Can any body give me an example? I am totally lost here.

One more question, what's a strong pointer?

© Stack Overflow or respective owner

Related posts about c++

Related posts about smart-pointers