8000 Add rvalue accessors to expected and optional, and update constructors. by msmorgan · Pull Request #690 · ETLCPP/etl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add rvalue accessors to expected and optional, and update constructors. #690

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

Conversation

msmorgan
Copy link
Contributor
@msmorgan msmorgan commented May 5, 2023
  • Add rvalue methods to optional and expected.
  • Fix constructors in expected.h.

The constructor for unexpected was not working properly with the implicit constructor expected(unexpected<E>) (probably due to CPP23 overload resolution rules), so it has been replaced with copy- and move-versions of constructors that take TError.

@msmorgan msmorgan marked this pull request as ready for review May 5, 2023 22:52
@jwellbelove
Copy link
Contributor

The code does not pass the the C++ standard sanity checks.
Please check by running the bash script ./runsanitychecks.sh
You will need both GCC and CLang compilers.
I am currently testing against GCC 12.1.0 and Clang 14.0.0

@jwellbelove jwellbelove changed the base branch from master to hotfix/#690-add-rvalue-accessors-to-expected-and-optional-and-update-constructors May 6, 2023 08:44
…optional-and-update-constructors' into rvalue
@msmorgan
Copy link
Contributor Author
msmorgan commented May 8, 2023

Finally got them both installed on WSL. Looking into it.

@msmorgan
Copy link
Contributor Author

@jwellbelove I believe I've fixed the issues you mentioned. Could you run the analyzers?

@jwellbelove jwellbelove merged commit 760ff8b into ETLCPP:hotfix/#690-add-rvalue-accessors-to-expected-and-optional-and-update-constructors May 20, 2023
jwellbelove added a commit that referenced this pull request May 20, 2023
…s. (#690)

* Add rvalue methods to optional and expected.

* Fix constructors in expected.h.

* Fix sanity checks.

---------

Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
jwellbelove added a commit that referenced this pull request May 20, 2023
…al-and-update-constructors' of https://github.com/ETLCPP/etl into hotfix/#690-add-rvalue-accessors-to-expected-and-optional-and-update-constructors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants
0