mirror of
https://github.com/boostorg/leaf.git
synced 2026-01-19 04:22:08 +00:00
formatting changes, documentation update
This commit is contained in:
@@ -29,24 +29,24 @@ leaf::result<void> f23()
|
||||
int main()
|
||||
{
|
||||
int r = leaf::try_handle_all(
|
||||
[ ]() -> leaf::result<int>
|
||||
[]() -> leaf::result<int>
|
||||
{
|
||||
leaf::result<void> r1 = f12();
|
||||
(void) r1;
|
||||
leaf::result<void> r2 = f23();
|
||||
return r2.error();
|
||||
},
|
||||
[ ]( info<1> )
|
||||
[]( info<1> )
|
||||
{
|
||||
return 1;
|
||||
},
|
||||
[ ]( info<2> const & x, info<3> const & y )
|
||||
[]( info<2> const & x, info<3> const & y )
|
||||
{
|
||||
BOOST_TEST_EQ(x.value, 2);
|
||||
BOOST_TEST_EQ(y.value, 3);
|
||||
return 2;
|
||||
},
|
||||
[ ]
|
||||
[]
|
||||
{
|
||||
return 3;
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user