-
Notifications
You must be signed in to change notification settings - Fork 56
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
Implement Default for WeakPtr? #77
Comments
But yeah, |
In the code I'm writing, it would be useful to have
Default
onWeakPtr
so I don't need to wrap it in an extra layer ofOption
. This would make it more like std::rc::Weak and I think presents no problem because the null pointer is valid.Happy to send a PR, I'm filing as an issue first to verify that it would be wanted, and in case there's a problem with the idea I'm missing.
The text was updated successfully, but these errors were encountered: