...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::scope::check_error_code — Creates a predicate for checking whether an exception is being thrown.
// In header: <boost/scope/error_code_checker.hpp> template<typename ErrorCode> error_code_checker< ErrorCode > check_error_code(ErrorCode & ec);