You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implicit conversion from E has been forbidden to avoid ambiguity when E and T are the same type.
However when E it is not convertible to T there wouldn’t any ambiguity.
Should the implicit conversion be allowed in this case?
The text was updated successfully, but these errors were encountered:
viboes
changed the title
Should expected<E,T> be convertible from E when E it is not convertible to T?
Should expected<T,E> be convertible from E when E it is not convertible to T?
Mar 13, 2016
The implicit conversion from
E
has been forbidden to avoid ambiguity whenE
andT
are the same type.However when
E
it is not convertible toT
there wouldn’t any ambiguity.Should the implicit conversion be allowed in this case?
The text was updated successfully, but these errors were encountered: