This is the mail archive of the sid@sources.redhat.com mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]