Re: PATCH: make trace_stream better preserve std::ofstream semantics

Ben Elliston <[email protected]>
Newsgroups gmane.comp.emulators.sid.devel
Message-ID <[email protected]>
Jim Blandy <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.