This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
Re: PATCH: make trace_stream better preserve std::ofstream semantics
- From: Ben Elliston <bje at wasabisystems dot com>
- To: sid at sources dot redhat dot com
- Date: 20 Jan 2004 12:02:06 +1100
- Subject: Re: PATCH: make trace_stream better preserve std::ofstream semantics
- References: <vt2r7xvob26.fsf@zenia.home>
Jim Blandy <jimb@redhat.com> writes:
> Rather than subclassing std::ofstream and doing this odd redirection
> stuff, wouldn't it be simpler to just make trace_stream an instance
> of plain old std::ofstream, and then call rdbuf () to set its
> streambuf to either cout's streambuf, or a filebuf for the trace
> file?
Yes, that seems better. Thanks.
Ben