In All.h, I #include ModA.h, ModB.h, ModC.h and any std libraries I need. In every Mod*.cpp, I just include All.h header. This seems ok at first, however, it seems to be slow in compiled time.
If I include selected headers for specific cpp file than it quite... annoy. It usually caused 'redefinition of 'length' as different kind of symbol' error even though I can see it anywhere.
Is there any ways could achieve these (expectation):
- Quick compiled time
- Easy to maintain
- Less tangling with `redefinition` error
Thanks, can you help me to point out the root of the problem of my code? Here is it (https://repl.it/@dangtu/HTMG --> File: Node.cpp and NamedNodeMap.cpp)