Home | Libraries | People | FAQ | More |
boost::contract::from — Indicate the kind of operation where the contract assertion failed.
// In header: <boost/contract/core/exception.hpp> enum from { from_constructor, from_destructor, from_function };
This is passed as a parameter to the assertion failure handler functions. For example, it might be necessary to know in which operation an assertion failed to make sure exceptions are never thrown from destructors, not even when contract failure handlers are programmed by users to throw exceptions instead of terminating the program.
See Also: