MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / make_error_code

Function make_error_code

extern/simple_enum/generic_error_category.hpp:91–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 */
90template<concepts::error_enum ErrorEnum>
91inline auto make_error_code(ErrorEnum e) -> std::error_code
92 {
93 return {static_cast<int>(e), generic_error_category<ErrorEnum>::instance()};
94 }
95
96using cxx23::bad_expected_access;
97using cxx23::expected;

Callers 1

make_unexpected_ecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected