| 68 | } |
| 69 | |
| 70 | leaf::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 | |
| 87 | leaf::result<void> handle_some_errors_void( int what_to_do ) |
| 88 | { |
no test coverage detected