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

Adding iterator to string.cpp #132

Merged
merged 1 commit into from
Feb 7, 2025
Merged

Conversation

fosterbrereton
Copy link
Member

When compiling without to_chars support enabled (that is, __cpp_lib_to_chars >= 201611L is false), string.cpp uses std::back_inserter, which requires <iterator> be included. This dependency is missing and causes some compilers to fail (e.g., Xcode 16.1 building under C++23). This PR adds the necessary include.

When compiling without `to_chars` support enabled (that is, `__cpp_lib_to_chars >= 201611L` is false), `string.cpp` uses `std::back_inserter`, which requires `<iterator>` be included. This dependency is missing and could cause some compilers to fail (e.g., Xcode 16.1 building under C++23). This PR adds the necessary include.
@sean-parent
Copy link
Member

LGTM.

@sean-parent sean-parent merged commit 0ebffaa into main Feb 7, 2025
9 checks passed
@sean-parent sean-parent deleted the fosterbrereton/string-include-fix branch February 7, 2025 21:31
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