| 51 | } |
| 52 | |
| 53 | leaf::result<int> handle_some_errors( int what_to_do ) |
| 54 | { |
| 55 | return leaf::try_handle_some( |
| 56 | [=] |
| 57 | { |
| 58 | return compute_answer(what_to_do); |
| 59 | }, |
| 60 | []( error1_tag, leaf::match<error_code, error_code::error1> ) |
| 61 | { |
| 62 | return -1; |
| 63 | }, |
| 64 | []( leaf::match<error_code, error_code::error1> ) |
| 65 | { |
| 66 | return -2; |
| 67 | } ); |
| 68 | } |
| 69 | |
| 70 | leaf::result<float> handle_some_errors_float( int what_to_do ) |
| 71 | { |
no test coverage detected