-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Replace C-style casts to static_cast and reinterpret_cast #5930
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
Conversation
|
I used Cursor like this: PromptCould you please look at git diff master? This is pybind11 PR #5930 The changes look great to me. Could you please review them to see if the C++-style casts are the best choices in all cases? (I forgot to add: GHA testing passes, except for known issues) ReviewOverallAll of the C++-style casts introduced in this diff look appropriate, and I don’t see any cases where a different cast ( Per-file notes (brief)
Bottom lineI don’t see any misused C++-style casts in this PR; the choices between |
rwgk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks for doing this.
Description
This PR replaces some C-style casts with C++ ones.
Suggested changelog entry: