2
0
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:
Emil Dotchevski
2019-02-19 21:46:47 -08:00
parent fc0dc830ed
commit c42bee4bfc
68 changed files with 797 additions and 787 deletions

View File

@@ -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;
} );