Quote:Original post by EzbezQuote:Original post by Nypyren
If inclusion of a header alters the meaning of previous definitions (via macros) in such a way that the resulting behavior differs, then the project is poorly constructed anyway.
Ah, but the point of this is to fix poor construction, no? That it's poorly constructed is pretty much a prerequisite for doing this.
Simply including a header that you don't actually need (maybe because you removed all the code that originally needed it) is very different from including a header that has a "#define class struct" or something else dangerous but perfectly possible like that.