title: Finding boost::shared_ptr cyclic references
body: <p>Is there any tips/tricks for finding cyclic references of shared_ptr's?</p>
  
  <p>This is an exmaple of what I'm trying to find - unfortunately I can't seem to find the loop in my code.</p>
  
  <pre><code>struct A
  {
    boost::shared_ptr&lt;C&gt; anC;
  };
  
  struct B
  {
    boost::shared_ptr&lt;A&gt; anA;
  };
  
  struct C
  {
    boost::shared_ptr&lt;B&gt; anB;
  };
  </code></pre>