Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Should expected constructor unwrap implicitly? #45

Open
viboes opened this issue Apr 19, 2014 · 3 comments
Open

Should expected constructor unwrap implicitly? #45

viboes opened this issue Apr 19, 2014 · 3 comments
Labels

Comments

@viboes
Copy link
Collaborator

viboes commented Apr 19, 2014

std::future constructor unwrap implicitly. I don't remember why this was decided. Should expected behave the same way?

@ptal
Copy link
Owner

ptal commented Apr 21, 2014

Not sure about what you mean. How a constructor unwrap something?

@viboes
Copy link
Collaborator Author

viboes commented Apr 21, 2014

I mean

expected<E,T>(expected<E, expected<E,T>>);

@ptal
Copy link
Owner

ptal commented Apr 29, 2014

It might be useful and if it exists in std::future there surely are some useful cases for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants