Skip to content

🍒[cxx-interop] Make CxxConvertibleToCollection.forEach public #65284

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

Merged
merged 1 commit into from
May 2, 2023

Conversation

egorzhdan
Copy link
Contributor

@egorzhdan egorzhdan commented Apr 19, 2023

Explanation: This allows clients to iterate over a C++ container which doesn't provide random access with a .forEach call.
Scope: This only alters the Cxx module, which contains utilities for clients of C++ interop.
Risk: Low: only affects clients who use C++ interop, which is an opt-in feature.

rdar://107995558
(cherry picked from commit d5f5d4b)

This allows clients to iterate over a C++ container which doesn't provide random access with a `.forEach` call.

rdar://107995558
(cherry picked from commit d5f5d4b)
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Apr 19, 2023
@egorzhdan egorzhdan requested review from hyp and zoecarver April 19, 2023 14:26
@egorzhdan egorzhdan requested a review from a team as a code owner April 19, 2023 14:26
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan merged commit ccadd1b into release/5.9 May 2, 2023
@egorzhdan egorzhdan deleted the egorzhdan/5.9-cxx-sequence-foreach branch May 2, 2023 11:51
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++ 🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants