Minimize <iosfwd>

Paolo Carlini pcarlini@suse.de
Wed Apr 11 10:05:00 GMT 2007


Hi,

>> Excellent. Benjamin, I just went through the headers including 
>> <iosfwd> and I'm pretty sure that removing from the latter 
>> <bits/c++locale.h> is ok, basically because <bits/localefwd.h> takes 
>> care of including it anyway. Very worst case, one/two headers may 
>> require adjustements. That's very nice, because <bits/c++locale.h> 
>> alone is about two thirds of <iosfwd>.
>
> Yes, this is very cool I agree. Thanks for checking it in detail.

...

> I hope this is clear enough. If not, as Paolo said, this could 
> certainly be done incrementally where all but the #if glibc part of 
> fposfwd.h is checked in from your orig patch, and #include cwchar is 
> used for the time being.

Thus, in the meanwhile, I'm committing the below self-contained bits. 
Tested x86_64-linux, both locale models, without PCHs.

Paolo.

/////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_zack_1
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070411/b751c4ca/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_zack_1
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070411/b751c4ca/attachment-0001.ksh>


More information about the Gcc-patches mailing list