Suppose I want something of this sort, in one .cpp source file:
.cpp
class A { public: void doSomething(B *b) {}; }; class B { publi
Yes. You need a forward declaration:
class B; // add this line before A's declaration class A { public: void doSomething(B *b) {}; }; class B { public: void doSomething(A *a) {}; };