including .h files.
- by Max
Suppose I have two .h files: A.h and B.h.
Moreover, A.h includes B.h itself:
B.h - declares class B.
class B {
...
};
A.h - declares class A, which uses class B.
#include B.h
class A {
void SomeFunction(const B& b);
};
Now, I have some .cpp file, that uses both A and B classes (B class maybe used not only in A::SomeFunction(B))
…