-
Notifications
You must be signed in to change notification settings - Fork 58
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
Support for non-owning deferred_ptr #16
Comments
Yes, I intend to add that eventually because it's natural to want a weak version of a strong (shared) pointer type. I'll probably put it off for a while as it's lower on the priority list, but I'll keep this issue open as a reminder. |
How about returning a shared_ptr with a customized dtor? |
@zhihao: |
I see. I kind of want to save some types so that people can gain some homogeneity in containers etc. Well. |
Thanks again for this suggestion. For now I'm waiting for feedback and bug reports from actual use of the library, and deferring enhancements and optimizations until then but keeping them in the backlog. |
Will there be support for non-owning deferred_ptrs that will not prevent objects being destroyed (don't participate in the mark phase) but will get nulled when the object they refer to gets destroyed? Like the semantics of a weak pointer in garbage collection.
The text was updated successfully, but these errors were encountered: