News for hackers. Stuff that matters.
Re:My Most Important C++ Aha Moments (2006) by green7ea on Sunday June 26, 2016 @09:25AM (#11980661)
It can easily be done by declaring a prototype of B:

  // file: A.h
  class B;

  class A {
    B* _b;
  };

  // file: B.h
  class B {
    A* _a;
  };

There are no comments on this comment yet.