| 58 | } |
| 59 | |
| 60 | leaf::result<value> f3() |
| 61 | { |
| 62 | BOOST_LEAF_AUTO(a, f2()); |
| 63 | |
| 64 | // Invoking the macro twice in the same scope, testing the temp name |
| 65 | // generation. Also making sure we can pass a lambda (See |
| 66 | // https://github.com/boostorg/leaf/issues/16). |
| 67 | BOOST_LEAF_AUTO(b, f2_lambda([]{})); |
| 68 | |
| 69 | return value { a.x + b.x }; |
| 70 | } |
| 71 | |
| 72 | int main() |
| 73 | { |