Skip to content

Nullify the user-object pointer during smart-pointer construction #40

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

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

rouson
Copy link
Member

@rouson rouson commented Sep 23, 2022

  1. The user_object_ptr_t constructor now nullifies the user_object pointer dummy argument in order to discourage the use of unencapsulated pointers because there's no automated reference-count tracking for unencapsulated pointers.
  2. Add and clarify assertions.

The smart_pointer_t constructor now nullifies the user_object_t
pointer dummy argument in order to discourage the use of
unencapsulated pointers because unencapsulated there's no
automated reference-count tracking with unencapsulated pointers.
@rouson rouson merged commit 09f75c4 into main Sep 26, 2022
@rouson rouson deleted the nullify-user-pointer branch September 26, 2022 21:47
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