Unless reviewers here are super keen on supporting outcome
, I'll be adding a static assert forever preventing them soon. But not providing them means that if I have function that returns a reference and signals failures by, say output function parameter:
``` T& find_smallest(std::array
& array, std::error_code & err); ``` I will never be able to "modernize" it to use `outcome` or `expected`.
I know you won't like this answer, but I'd just return a T* and
dereference it :)
But to be more serious, the way I've solved that exact problem in my own
code is:
```
expected