Redirecting C++ ostreams
Jeremy DeHaan
dehaan.jeremiah at gmail.com
Tue Jun 11 21:05:21 PDT 2013
Hey guys,
I have something I am curious about, but haven't had much luck
with when doing research and experimenting.
Basically, I am working with a library that uses ostreams
internally and I want to somehow redirect that to what ever
stderr is pointing to.
The reason I am trying to do this is because I was considering
the user might want to have some sort of log they want error
messages written to, and if they redirect stderr to a file I'd
like the underlying ostreams to be directed to the same location.
Any ideas or suggestions would be welcome!
Thanks in advance
More information about the Digitalmars-d-learn
mailing list