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 for the latest Boost documentation.
PrevUpHomeNext

Function add_context

boost::unit_test::framework::add_context — Records context frame message.

Synopsis

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


int add_context(lazy_ostream const & context_descr, bool sticky);

Description

Some context frames are sticky - they can only explicitly cleared by specifying context id. Other (non sticky) context frames cleared after every assertion.

Parameters:

context_descr

context frame message

sticky

is this sticky frame or not

Returns:

id of the newly created frame


PrevUpHomeNext