Something terribly wrong with gcc-3.0.4 Linux

Paolo Carlini pcarlini@unitus.it
Thu Mar 28 07:28:00 GMT 2002


Neal D. Becker wrote:

>    Paolo>   std::ios::sync_with_stdio(false);
>
>    Paolo> before any other output operations?
>
>No, I haven't tried that yet, but I sure don't expect that I need to
>in order to not have cout << "hello world" not call write() for every
>character.
>
You don't expect this, on which basis? For sure, the standard offers no 
guarantees. Quite to the contrary, std::ios::sync_with_stdio(false); is 
the correct approach if you want to trade sync with stdio for speed: on 
this, see, f.i., Josuttis, pp. 682.

More generally, if you think that something is seriously wrong, the 
recommended procedure is filing a complete GNATS PR 
(http://gcc.gnu.org/cgi-bin/gnatsweb.pl), /not/ posting to the 
discussion lists.

Thanks, Paolo.




More information about the Gcc mailing list