2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-01-19 04:22:08 +00:00

Documentation update

This commit is contained in:
Emil Dotchevski
2022-10-15 17:57:21 -07:00
parent 9d3ffa0f1c
commit 216393895f

View File

@@ -229,7 +229,7 @@ leaf::result<U> r = leaf::try_handle_some(
[]( leaf::match<err1, err1::e1, err1::e3> ) -> leaf::result<U>
{
// Handle err::e1
// Handle err::e1 or err1::e3
},
[]( err1 e ) -> leaf::result<U>
@@ -432,7 +432,7 @@ leaf::result<U> r = leaf::try_handle_some(
An error handler is never dropped for lack of error objects of types which the handler takes as pointers; in this case LEAF simply passes `0` for these arguments.
TIP: Error handlers can take arguments by value, by const reference or pointer, and by mutable reference or pointer. It the latter case, changes to the error object state will be propagated up the call stack if the failure is not handled.
TIP: Error handlers can take arguments by value, by (`const`) reference or as a (`const`) pointer. It the latter case, changes to the error object state will be propagated up the call stack if the failure is not handled.
[[tutorial-augmenting_errors]]
=== Augmenting Errors