Replace C-style casts to static_cast and reinterpret_cast#5930
Replace C-style casts to static_cast and reinterpret_cast#5930rwgk merged 2 commits intopybind:masterfrom
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.
Awesome! Thanks for doing this.
Description
This PR replaces some C-style casts with C++ ones.
Suggested changelog entry: