24 May
2017
24 May
'17
3 p.m.
This means, the initial example should use `boost::outcome::result` (instead of `boost::outcome::outcome`). And then function that inspects the result could read:
``` void test() { if (auto r = fun) use_int_value(r.value()); else inspect_error_code(r.error()); } ```
The initial example could look like this: https://github.com/akrzemi1/__sandbox__/blob/master/outcome_intro.md
THis is a better example of what Outcome can do, yes.
You both would prefer that the landing page motivating example not show how outcomes can also transport caught C++ exceptions through non-C++ exception code? Niall -- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/