tk::cerr_redirect struct

Helper for redirecting std::cerr to a stringstream's buffer.

Constructors, destructors, conversion operators

cerr_redirect(std::streambuf* new_buffer)
~cerr_redirect()
Destructor: restore previous state of std::cerr.

Function documentation

tk::cerr_redirect::cerr_redirect(std::streambuf* new_buffer)

Parameters
new_buffer in Stream buffer to redirect std::cerr to

Constructor: redirect std::cerr to a std::streambuf