| 28 | } |
| 29 | |
| 30 | leaf::result<float> test2(int a) |
| 31 | { |
| 32 | return leaf::try_handle_some( |
| 33 | [&]() -> leaf::result<float> |
| 34 | { |
| 35 | BOOST_LEAF_AUTO(val, test1(a)); |
| 36 | (void) val; |
| 37 | return 4.5; |
| 38 | }, |
| 39 | [](leaf::match<ErrorCode,ErrorCode::E_GENERIC_UNEXPECTED>) -> leaf::result<float> |
| 40 | { |
| 41 | return leaf::new_error(ErrorCode::E_GENERIC_PARSE); |
| 42 | } |
| 43 | ); |
| 44 | } |
| 45 | |
| 46 | void test3(int a) |
| 47 | { |
no test coverage detected