Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix TRY_OK and TRY_SOME with rvalue-ref argument #21

Merged
merged 1 commit into from
Oct 14, 2020
Merged

fix TRY_OK and TRY_SOME with rvalue-ref argument #21

merged 1 commit into from
Oct 14, 2020

Conversation

melak47
Copy link
Contributor

@melak47 melak47 commented Oct 13, 2020

Fix error described in #20 by using std::remove_reference_t<decltype((result_expr))>

Also adds a few lines to the Option and Result tests to make sure this scenario is covered.

* test this in Option and Result test cases
@lamarrr lamarrr merged commit b749f62 into lamarrr:master Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants