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 a snapshot of the develop branch, built from commit 65ab21cc6f.
PrevUpHomeNext

Function set_old_failure

boost::contract::set_old_failure — Set failure handler for old values copied at body.

Synopsis

// In header: <boost/contract/core/exception.hpp>


from_failure_handler const & set_old_failure(from_failure_handler const & f);

Description

Set a new failure handler and returns it.

Throws: This is declared noexcept (or throw() before C++11).

See Also:

Throw on Failure, Old Values Copied at Body

Parameters:

f

New failure handler functor to set.

Returns:

Same failure handler functor f passed as parameter (e.g., for concatenating function calls).


PrevUpHomeNext