On Tue, Oct 28, 2003 at 08:31:04PM +0100, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | I don't see the point to the _fwd.h file. > > > | #include "dispatchresult_fwd.h" > > > | is more typing than > > > | class DispatchResult; > > Well... but now I can add other stuff to the header file wihtout > touching a lot of files. (not that many in this case...)
But Angus has a point here. > | and actually makes the header file that does the #including less > | understandable. > > I disagree. > > IMHO we should never manually forward declare, that should be the > purpose of a header file instead. OH, PLEASE, NO! Not Yet Another Rule To Make Things More Complex. > IMHO this is the same as with global variables and extern should not > be done manually, but by the inclusion of header files. Please not. Forward declaring a class be saying 'class Foo;' is standard practice. It is cheap. And it is as explicit as it can get. Nothing hidden, all clear. #include can mean everything. Andre'