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: <outcome/std_outcome.hpp>, <outcome/boost_outcome.hpp>