Skip to content

Conversation

@r-barnes
Copy link
Contributor

Summary:
nullptr is typesafe. 0 and NULL are not. In the future, only nullptr will be allowed.

This diff helps us embrace the future now in service of enabling -Wzero-as-null-pointer-constant.

Differential Revision: D71284808

Summary:
`nullptr` is typesafe. `0` and `NULL` are not. In the future, only `nullptr` will be allowed.

This diff helps us embrace the future _now_ in service of enabling `-Wzero-as-null-pointer-constant`.

Differential Revision: D71284808
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D71284808

@facebook-github-bot facebook-github-bot merged commit 95ca2af into pytorch:main Mar 18, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants