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 to view this page for the latest version.
Prev Up HomeNext

auto basic_outcome_failure_exception_from_error(const EC &)

Synthesises an exception type from an error type, used by the exception_type failure() const noexcept observers. ADL discovered. Default overloads for this function are defined in Outcome for std::error_code and boost::system::error_code, these return std::make_exception_ptr(std::system_error(ec)) and boost::copy_exception(boost::system::system_error(ec)) respectively.

Overridable: Argument dependent lookup.

Requires: Nothing.

Namespace: Namespace of EC type.

Header: <boost/outcome/std_outcome.hpp>, <boost/outcome/boost_outcome.hpp>

Last revised: February 06, 2019 at 16:50:01 UTC


Prev Up HomeNext