Boost C++ Libraries

...one 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.
PrevUpHomeNext

Function set_stream

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

Synopsis

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


void set_stream(std::ostream &);

Description

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.


PrevUpHomeNext