On Thu, Nov 08, 2007 at 09:13:37PM +0100, Andre Poenitz wrote: > On Thu, Nov 08, 2007 at 09:01:55PM +0100, Andre Poenitz wrote: > > On Thu, Nov 08, 2007 at 06:05:20AM -0000, [EMAIL PROTECTED] wrote: > > > Author: forenr > > > Date: Thu Nov 8 07:05:19 2007 > > > New Revision: 21513 > > > > > > URL: http://www.lyx.org/trac/changeset/21513 > > > Log: > > > Fix problems with odocstream on "exotic" systems caused by the strfwd > > > gimmick. > > > > > > * src/support/docstream.{cpp,h}: > > > Move insertion operator for char types from docstream.h to > > > docstream.cpp and compile it only when USE_WCHAR_T is not defined. > > > > > > * src/support/strfwd.h: > > > Implement forward declarations in standard C++ way. > > > > I'd like to see an explanation what does not work for you, and why. > > > > <iosfwd> is stll >6400 lines on my system, so you basically killed 30% > > of the benefits of that work without giving a reason. > > On second thoughts: I would agree to a solution using some kind of > #ifdef as long as it does not lead to a #include <iosfwd> on vanilla > Linux.
There's no need for any #ifdef. If you want forward declarations, then the iosfwd header was conceived just for that. If you don't want that, feel free to change it. -- Enrico