Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Function set_stream

boost::unit_test::results_reporter::set_stream — Sets output stream for results reporting.


// In header: <boost/test/results_reporter.hpp>

void set_stream(std::ostream &);


By default std::cerr is used. Use this function to set a different stream. The framework refers to the stream by reference, so you need to make sure the stream object lifetime exceeds the testing main scope.