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.

libs/test/doc/src/examples/example25.cpp

#include <stdexcept>
#include <boost/test/included/prg_exec_monitor.hpp> 

//____________________________________________________________________________//

int foo() { throw std::runtime_exception( "big trouble" ); }

//____________________________________________________________________________//

int cpp_main( int, char* [] ) // note the name
{
    foo();

    return 0;
}

//____________________________________________________________________________//