| 33 | } |
| 34 | |
| 35 | int main() |
| 36 | { |
| 37 | int r = leaf::try_handle_all( |
| 38 | []() -> leaf::result<int> |
| 39 | { |
| 40 | return f(); |
| 41 | }, |
| 42 | []( info<1> const & a, info<2> const & b ) |
| 43 | { |
| 44 | BOOST_TEST_EQ(a.value, 2); |
| 45 | BOOST_TEST_EQ(b.value, 1); |
| 46 | return 1; |
| 47 | }, |
| 48 | [] |
| 49 | { |
| 50 | return 2; |
| 51 | } ); |
| 52 | BOOST_TEST_EQ(r, 1); |
| 53 | return boost::report_errors(); |
| 54 | } |
nothing calls this directly
no test coverage detected