Ok, it looks like we need to have a chat about these "*forward.h" files
I see cropping up that keep killing my rebuild times when I try to do
I realize the intent was to reduce #include dependencies, but they
actually make the problem far worse: since a whole lot of unrelated
stuff is grouped in one file that everyone includes, adding or removing
a class requires a rebuild of fricking EVERYTHING...
And, really, do you need a header file for this? --
No, you do not. It's wasteful. All it asserts is that the classes (or
structs) Foo and Blah definitely exist somewhere, to keep the compiler
happy and avoid ambiguity.
You can perfectly well put that directly in files where Foo or Blah are
used opaquely without losing any maintainability (if either class gets
removed or renamed, you'll need to edit those files regardless).
Best thing is the files that only use Foo and not Blah won't need to be
recompiled if Blah is removed or renamed anymore...
So, please, STOP USING THESE BLOODY FORWARD HEADERS. I am removing
xml/xml-forward.h today. I don't want to see any new ones cropping up.