Sunday, 8 September 2013

Including all header files in application

Including all header files in application

I was recently looking through the source code of a C++ application and
saw that each class did not #include its needed components, but instead
#include'd a "Precompiled.h" header. In this Precompiled header was an
inclusion of almost every header in the application (not all of them, it
was clear that the length and order of the list was deliberate).
Essentially, this would mean that every class had an inclusion of every
other class in the application.
Is this wise? Why or why not?

No comments:

Post a Comment