ptal / expected

What did you expect?
113 stars 18 forks source link

Warnings in unexpected value #83

Closed romikforest closed 8 years ago

romikforest commented 8 years ago

Generally we have three sutuation:

Can class 'expected' help with third situation, return both E and T and be convertable to true?

viboes commented 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