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 "handle" smart pointer #120

Open
Kazuo256 opened this issue Oct 23, 2017 · 0 comments
Open

Add "handle" smart pointer #120

Kazuo256 opened this issue Oct 23, 2017 · 0 comments

Comments

@Kazuo256
Copy link
Member

There are a few cases in UGDK where a manager-thing holds the ownership of a pointer, but lends out "weak references" to it.

In some places we use shared/weak pointers. In others, we use raw pointers.

I suggest we implement a "handle pointer" sort of thing, which can access the originally owned pointer as long as it is valid. See 15.5.3 from Game Engine Architectures.

@Kazuo256 Kazuo256 added this to the Release v0.5.0 milestone Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant