News for hackers. Stuff that matters.
Re:Why I don't spend time with Modern C++ anymore by humanrebar on Wednesday May 18, 2016 @07:54AM (#11721250)
Not sure what you're trying to do, but:

    class A; class B; // 'forward declaration' if you want to google
    class A { unique_ptr<B> b; };
    class B { unique_ptr<A> a; };
...generally classes instantiating each other is a sign that your design needs rearranged, but it has its uses when writing graph types.

There are no comments on this comment yet.