| 43 | } |
| 44 | |
| 45 | float test2(int a) |
| 46 | { |
| 47 | return leaf::try_catch( |
| 48 | [&] |
| 49 | { |
| 50 | auto val = test1(a); |
| 51 | (void) val; |
| 52 | return 4.5; |
| 53 | }, |
| 54 | [](leaf::match<ErrorCode,ErrorCode::E_GENERIC_UNEXPECTED>) |
| 55 | { |
| 56 | BOOST_LEAF_THROW_EXCEPTION(ErrorCode::E_GENERIC_PARSE); |
| 57 | return 0; |
| 58 | } |
| 59 | ); |
| 60 | } |
| 61 | |
| 62 | void test3(int a) |
| 63 | { |