title: Class reference to parent
body: <p>i'm pretty new at using C++ and I'm actually stopped at a problem.</p>
  
  <p>I have some class A,B,C defined as follow (PSEUDOCODE)</p>
  
  <pre><code>class A
  {
  ...
      DoSomething(B par1);
      DoSomething(C par1);
  ...
  }
  
  class B
  {
     A parent;
  ...
  }
  
  class C
  {
     A parent;
  ...
  }
  </code></pre>
  
  <p>The problem is :</p>
  
  <p>How to make this? If I simply do it (as I've always done in c#) it gives errors. I pretty much understand the reason of this. (A isn't already declared if I add the reference (include) of B and C into its own header)</p>
  
  <p>Any way to go around this problem? (Using void* pointer is not the way to go imho)</p>