Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve move semantics in Expected (#4326)
* Improve move semantics in Expected: This patch unconditionally moves an `Unexpected<U>` value parameter as long as `U` is not a reference. If `U` is a reference the code should not compile. An error type that holds a reference is a strange use-case, and an overload is not provided. If it is required in the future it can be added. The `Expected(U r)` overload should take a forwarding ref. * Replace enable_if with concepts in Expected
- Loading branch information