Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should expected<T,E> be convertible from E when E it is not convertible to T? #13

Open
viboes opened this issue May 25, 2014 · 0 comments
Labels

Comments

@viboes
Copy link
Collaborator

viboes commented May 25, 2014

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?

@viboes 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant