ptal / expected

What did you expect?
113 stars 18 forks source link

[Monads] Move value from monad_error to possibly_valued. #43

Closed viboes closed 10 years ago

viboes commented 10 years ago

Value function has nothing to be with monad_error. It is much more related to PossiblyValued concept as deref is.

The single issue is which exception to throw. For the time been the exception thrown is bad_access. bad_expected_access inherits from bad_access. bad_optional_access should inherit from bad_access also.