Skip to content

🍒[cxx-interop] Add std::set initializer that takes a Swift Sequence #66600

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 3 commits into from
Jul 6, 2023

Conversation

egorzhdan
Copy link
Contributor

@egorzhdan egorzhdan commented Jun 13, 2023

Explanation: It was previously not possible to easily initialize an std::set from a Swift Sequence. This change adds an extra initializer to std::set that takes a Swift Sequence as a parameter.
Scope: This adds a requirement to the CxxSet protocol, adjusts the auto-conformance logic to check the new requirement, and adds an extra initializer to CxxSet.
Risk: Low, this only has an effect when C++ interop is enabled.

rdar://107909624
(cherry picked from commit dd7e177)

@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Jun 13, 2023
@egorzhdan egorzhdan requested a review from a team as a code owner June 13, 2023 16:26
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan force-pushed the egorzhdan/5.9-cxx-set-init branch from 625d95e to f461353 Compare June 14, 2023 16:14
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan
Copy link
Contributor Author

@swift-ci please test macOS

@egorzhdan egorzhdan force-pushed the egorzhdan/5.9-cxx-set-init branch from f461353 to af0050c Compare June 20, 2023 14:10
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan
Copy link
Contributor Author

The tests are failing because #65105 is merged into main but not release/5.9.

@egorzhdan egorzhdan force-pushed the egorzhdan/5.9-cxx-set-init branch from df34f50 to 37b45da Compare July 5, 2023 15:24
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan merged commit 444f62f into release/5.9 Jul 6, 2023
@egorzhdan egorzhdan deleted the egorzhdan/5.9-cxx-set-init branch July 6, 2023 11:07
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++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants