News for hackers. Stuff that matters.
Re:My Most Important C++ Aha Moments (2006) by jontro on Sunday June 26, 2016 @05:42AM (#11980050)
This can be done, check the end of this answer: http://stackoverflow.com/a/628079/429972

   // file: A.h
   class B;
   class A {
     B* _b; // or any of the other variants.
   };
Re:My Most Important C++ Aha Moments (2006) by gruez on Sunday June 26, 2016 @05:52AM (#11980076)
You can also do this

    class A {
      class B* _b;
    };