Article View: gnu.g++.lib.bug
Article #539Does '\n' flush streams?
From: Peter R. Ham
Date: Fri, 15 Dec 1989 18:46
Date: Fri, 15 Dec 1989 18:46
18 lines
963 bytes
963 bytes
I've asked this question before, but here goes again. Should cout << "\n" flush cout? The libg++ test suite seems to imply that it should. I'm not getting that behavior on the pmax. Maybe I should go debug the thing? In Stroustrup's book, it says that and ostream should be flushed in its destructor. The libg++ ~ostream doesn't seem to to this. What am I missing? -- Peter Ham PO Box 3430 (h)(415) 322-4390 MS Computer Science Student Stanford, CA ham@cs.stanford.edu Stanford University 94309 (o)(415) 723-2067
Technical Details
Message-ID:
<HAM.89Dec15104637@Neon.Stanford.EDU>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!shelby!neon!neon.Stanford.EDU!hamShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!shelby!neon!neon.Stanford.EDU!ham From: ham@Neon.Stanford.EDU (Peter R. Ham) Newsgroups: gnu.g++.lib.bug Subject: Does '\n' flush streams? Message-ID: <HAM.89Dec15104637@Neon.Stanford.EDU> Date: 15 Dec 89 18:46:37 GMT Sender: USENET News System <news@Neon.Stanford.EDU> Distribution: gnu Organization: Stanford University Lines: 18