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

Add Retained smart pointer #97

Closed
wants to merge 9 commits into from
Closed

Conversation

madsmtm
Copy link

@madsmtm madsmtm commented May 28, 2021

The smart pointer version of StrongPtr, but with more guarantees.

Notably, this has an Deref<Target = T> implementation, which makes it more ergonomic and safer to use.

See #95 for some of the reasoning behind this.

I'm thinking about removing StrongPtr completely in favor of this (since it's behaviour can be achieved with Retained<Object>), but please voice your opinion on this.

@madsmtm madsmtm closed this May 29, 2021
@madsmtm madsmtm deleted the retained branch May 29, 2021 18:35
@madsmtm
Copy link
Author

madsmtm commented May 29, 2021

Ooops, accidentally deleted the branch, so I've created #98 instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant