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

Function handle_some_errors_float

test/handle_basic_test.cpp:70–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70leaf::result<float> handle_some_errors_float( int what_to_do )
71{
72 return leaf::try_handle_some(
73 [=]() -> leaf::result<float>
74 {
75 return compute_answer(what_to_do);
76 },
77 []( error2_tag, leaf::match<error_code, error_code::error2> )
78 {
79 return -1.0f;
80 },
81 []( leaf::match<error_code, error_code::error2> )
82 {
83 return -2.0f;
84 } );
85}
86
87leaf::result<void> handle_some_errors_void( int what_to_do )
88{

Callers 1

mainFunction · 0.85

Calls 2

try_handle_someFunction · 0.85
compute_answerFunction · 0.70

Tested by

no test coverage detected