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

Replace class object MaybeUninit with Option #98

Closed
davidcole1340 opened this issue Oct 5, 2021 · 0 comments · Fixed by #94
Closed

Replace class object MaybeUninit with Option #98

davidcole1340 opened this issue Oct 5, 2021 · 0 comments · Fixed by #94
Labels
enhancement New feature or request

Comments

@davidcole1340
Copy link
Owner

Previously MaybeUninit was used to store a struct inside a Zend object. This can be replaced with an Option<T>, using std::ptr::write() to write the option into memory without dropping the uninitalized object.

@davidcole1340 davidcole1340 added the enhancement New feature or request label Oct 5, 2021
@davidcole1340 davidcole1340 linked a pull request Oct 5, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant