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

void outcome_throw_as_system_error_with_payload(ErrorCodeEnum &&) - Boost.Outcome documentation
Prev Up HomeNext

void outcome_throw_as_system_error_with_payload(ErrorCodeEnum &&)

A specialisation of outcome_throw_as_system_error_with_payload() for types where std::is_error_code_enum or std::is_error_condition_enum is true. This executes BOOST_OUTCOME_THROW_EXCEPTION(expr) with a std::system_error constructed from the result of the ADL discovered free function make_error_code(ErrorCodeEnum).

Overridable: Argument dependent lookup.

Requires: Either std::is_error_code_enum or std::is_error_condition_enum to be true for a decayed ErrorCodeEnum.

Namespace: std

Header:

Last revised: February 01, 2019 at 15:52:57 UTC

Prev Up HomeNext