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

Add <cstddef> to nanobind includes. #779

Merged
merged 1 commit into from
Nov 7, 2024
Merged

Conversation

hawkinsp
Copy link
Contributor

@hawkinsp hawkinsp commented Nov 6, 2024

nb_types.h uses std::ptrdiff_t, which is defined in cstddef.

Fixes a build failure in Google's build environment, in which this header does not get included transitively by the existing headers.

nb_types.h uses std::ptrdiff_t, which is defined in cstddef.
@wjakob wjakob merged commit 49ee540 into wjakob:master Nov 7, 2024
31 checks passed
@wjakob
Copy link
Owner

wjakob commented Nov 7, 2024

Thanks!

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