...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::unit_test::framework::register_observer — Observer lifetime should exceed the the testing execution timeframe.
// In header: <boost/test/framework.hpp> void register_observer(test_observer & to);