Why should you care about header dependencies in C++? One reason is header dependencies can have an impact on building, refactoring, testing and on the structure of your software.
And reducing header dependencies in C++ also reduces compile time dependencies – the dependencies between files and libraries at compile time.
One way to reduce header dependencies in C++ is to avoid including headers inside other header files.
Keeping header file dependencies to a minimum in C++ is always a g...