ptal / expected

What did you expect?
113 stars 18 forks source link

Shouldn't all the unexpected values of expected<E,T> compare equal? #63

Closed viboes closed 10 years ago

viboes commented 10 years ago

If expected<exception_ptr,T> should behave as optional<T>, shouldn't all the unexpected expected<E,T> compare equal?

ptal commented 10 years ago

I think it's not natural and could lead to silent bugs. I think that only expected<void, T> should behave as optional<T>.

viboes commented 10 years ago

Ok. I will close this point as invalid for the time been.