fix try_next and try_object when returning false, update unit tests

This commit is contained in:
ado
2021-01-03 17:27:21 +01:00
parent 7e1ea709ca
commit 91853a3287
3 changed files with 60 additions and 23 deletions

View File

@@ -395,3 +395,4 @@ p.try_next<int>()
.or_object<x, double>()
.on_error([] { /* int and x (all) conversions failed */ });
```
*See unit tests for more examples.*