ptal / expected

What did you expect?
113 stars 18 forks source link

Should expected constructor unwrap implicitly? #45

Open viboes opened 10 years ago

viboes commented 10 years ago

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

ptal commented 10 years ago

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

viboes commented 10 years ago

I mean

expected<E,T>(expected<E, expected<E,T>>);
ptal commented 10 years ago

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