Closed romikforest closed 8 years ago
There is another proposal "N4233 - A Class for Status and Optional Value" that goes in this direction. Each class is used to cover different use cases.
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4233.html
Generally we have three sutuation:
Can class 'expected' help with third situation, return both E and T and be convertable to true?