A
Alf P. Steinbach
* Jacob:
A header file is a source file: with that interpretation the question is
meaningless.
If you mean module implementation files then the question assumes that a
module implementation is #include'd in some other file, and then your
question boils down to: should module implementation files be #include'd?
And the answer to that is no.
It is common recommendation that C++ header
files should be "self-sufficient", i.e. they
should directly include every concept it use
and not rely on getting this information
through other includes.
Is this the case also for source files?
A header file is a source file: with that interpretation the question is
meaningless.
If you mean module implementation files then the question assumes that a
module implementation is #include'd in some other file, and then your
question boils down to: should module implementation files be #include'd?
And the answer to that is no.