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