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

Prefer using C header #8113

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Prefer using C header #8113

merged 2 commits into from
Sep 10, 2024

Conversation

z3moon
Copy link
Contributor

@z3moon z3moon commented Sep 10, 2024

Use stddef.h instead of cstddef for ptrdiff_t

Use stddef.h instead of cstddef for ptrdiff_t
@z3moon z3moon added the internal Issue/PR does not affect clients label Sep 10, 2024
@z3moon z3moon enabled auto-merge (squash) September 10, 2024 17:49
@@ -75,7 +74,7 @@ class STLAlignedAllocator {
using reference = TYPE&;
using const_reference = const TYPE&;
using size_type = std::size_t;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe make this size_t instead for correctness.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's better.

@z3moon z3moon requested a review from poweifeng September 10, 2024 17:58
@z3moon z3moon disabled auto-merge September 10, 2024 18:00
@z3moon z3moon enabled auto-merge (squash) September 10, 2024 18:00
@z3moon z3moon merged commit 5974065 into main Sep 10, 2024
11 checks passed
@z3moon z3moon deleted the zm/use-c-ptrdiff branch September 10, 2024 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants