Article View: comp.lang.c++.moderated
Article #13Re: Re-Routing streams
From: Andrew Fitzgibbon
Date: Wed, 20 Dec 1995 11:14
Date: Wed, 20 Dec 1995 11:14
28 lines
1719 bytes
1719 bytes
X-Original-Date: 20 Dec 1995 10:42:12 +0000
In article <4b423t$1k@netlab.cs.rpi.edu> kanze@gabi-soft.fr (J. Kanze) writes:
> Basically, the only real portable solution in this case is to not use
> cout, but a reference or pointer to a ostream, perhaps thus:
>
> ostream& output( getOuptutStream( filename ) ) ;
That's what I do, and others reading my code ask "what are these cinfo,
cwarn, cerr streams, why don't you use cout?"
Isn't it annoying that something as simple as redirecting stdout is still
being discussed?
A.
--
Andrew Fitzgibbon (Research Associate), andrewfg@ed.ac.uk
Artificial Intelligence, Edinburgh University. +44 031 650 4504
<a href=http://www.dai.ed.ac.uk/staff/personal_pages/andrewfg> Home Page </a>
"Never say there is no way" -- me.
[ comp.lang.c++.moderated is a moderated newsgroup. Submit articles ]
[ to <c++-submit@netlab.cs.rpi.edu>. The moderation policy can be ]
[ retrieved from <http://netlab.cs.rpi.edu/~cppmods/guide.html>. ]
[ Moderators can be reached at: c++-request@netlab.cs.rpi.edu. ]
Technical Details
Message-ID:
<4b8r78$eh0@netlab.cs.rpi.edu>Path:
arc1-ca.pugleaf.net!library.erc.clarkson.edu!rpi!not-for-mailReferences:
<4aq1ig$1u2@netlab.cs.rpi.edu> <4arah4$8g8@netlab.cs.rpi.edu> <4b423t$1k@netlab.cs.rpi.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!library.erc.clarkson.edu!rpi!not-for-mail From: andrewfg@emerald.aifh.ed.ac.uk (Andrew Fitzgibbon) Newsgroups: comp.lang.c++.moderated,comp.lang.c++ Subject: Re: Re-Routing streams Date: 20 Dec 1995 11:14:48 -0000 Organization: /usr/lib/news/organization Sender: cppmods@netlab.cs.rpi.edu Approved: kanze@gabi-soft.fr Message-ID: <4b8r78$eh0@netlab.cs.rpi.edu> References: <4aq1ig$1u2@netlab.cs.rpi.edu> <4arah4$8g8@netlab.cs.rpi.edu> <4b423t$1k@netlab.cs.rpi.edu> Reply-To: andrewfg@ed.ac.uk NNTP-Posting-Host: netlab.cs.rpi.edu