MCPcopy Create free account
hub / github.com/boostorg/leaf / handle_some_errors_void

Function handle_some_errors_void

test/handle_basic_test.cpp:87–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87leaf::result<void> handle_some_errors_void( int what_to_do )
88{
89 return leaf::try_handle_some(
90 [=]() -> leaf::result<void>
91 {
92 BOOST_LEAF_AUTO(answer, compute_answer(what_to_do));
93 (void) answer;
94 return { };
95 },
96 []( leaf::match<error_code, error_code::error3> )
97 {
98 } );
99}
100
101int main()
102{

Callers 1

mainFunction · 0.85

Calls 2

try_handle_someFunction · 0.85
compute_answerFunction · 0.70

Tested by

no test coverage detected