Boost logo

Boost Users :

Subject: Re: [Boost-users] shared_ptr and circular dependency
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2012-03-30 15:40:28


On Fri, Mar 30, 2012 at 12:26 PM, Christopher Pisz <cpisz_at_[hidden]> wrote:
>
> What are one's options when the code one is working on contains a circular
> dependency and one is trying to update it to use a shared_ptr vs a raw pointer?

You could use weak_ptr to break shared_ptr cycles.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net