Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

expected::operator*() for rvalue types should not be const #64

Closed
mikemccarty-vertex opened this issue Mar 9, 2018 · 0 comments
Closed
Assignees

Comments

@mikemccarty-vertex
Copy link

constexpr value_type && operator *() const &&

E.g.

expected<Thing> get_expected_thing() { return ...; }

Thing t = *get_expected_thing();

... will fail to compile as currently written.

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

No branches or pull requests

3 participants