MCPcopy Create free account
hub / github.com/boostorg/leaf / f3

Function f3

test/BOOST_LEAF_AUTO_test.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60leaf::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
72int main()
73{

Callers 1

mainFunction · 0.70

Calls 2

f2_lambdaFunction · 0.85
f2Function · 0.70

Tested by

no test coverage detected