Skip to content
New issue

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

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

Already on GitHub? # to your account

Modify Ok and Error #6

Merged
merged 3 commits into from
Dec 3, 2022
Merged

Modify Ok and Error #6

merged 3 commits into from
Dec 3, 2022

Conversation

threeal
Copy link
Owner

@threeal threeal commented Dec 3, 2022

modify how ok and error works by:

  • moving ok and error from res::internal to res namespace.
  • force to create a new res::Ok instance instead of using constant (for simplicity).
  • replace res::ErrMsgPtr that was using std::shared_ptr<std::string> to just using std::string (for simplicity).
  • create res::Err struct to wrap error data and force to create a new res::Err instance instead of just passing the error message.

@threeal threeal merged commit bda6848 into main Dec 3, 2022
@threeal threeal deleted the modify-ok-and-err branch December 3, 2022 14:15
@threeal threeal mentioned this pull request Mar 14, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant