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

[smart_holder] Smart holder default delete #4924

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

iwanders
Copy link
Contributor

@iwanders iwanders commented Nov 6, 2023

@rwgk , as requested in #4921 (comment)

Ensures std::default_delete<T> is used to look up the deleter for a type instead of delete directly.

Description

The smart holder should use std::default_delete for looking up a deleter instead of assuming delete is the correct thing.

Suggested changelog entry:

Ensures `std::default_delete<T>` is used to look up the deleter for a type instead of `delete` directly.
@rwgk
Copy link
Collaborator

rwgk commented Nov 6, 2023

Thanks @iwanders! I'm just waiting for the GHA to finish before merging.

It's fine to leave the suggested changelog entry blank, because we don't have smart_holder releases.

@iwanders
Copy link
Contributor Author

iwanders commented Nov 6, 2023

👍 good to know, I cleared it from the description.

@rwgk rwgk merged commit e02fe00 into pybind:smart_holder Nov 6, 2023
152 checks passed
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Nov 6, 2023
@rwgk rwgk removed the needs changelog Possibly needs a changelog entry label Nov 6, 2023
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.

2 participants