Closed viboes closed 10 years ago
If expected<exception_ptr,T> should behave as optional<T>, shouldn't all the unexpected expected<E,T> compare equal?
expected<exception_ptr,T>
optional<T>
unexpected expected<E,T>
I think it's not natural and could lead to silent bugs. I think that only expected<void, T> should behave as optional<T>.
expected<void, T>
Ok. I will close this point as invalid for the time been.
If
expected<exception_ptr,T>
should behave asoptional<T>
, shouldn't all theunexpected expected<E,T>
compare equal?