Skip to content

[cxx-interop] Synthesize conformances to CxxConvertibleToCollection #62293

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
Dec 1, 2022

Conversation

egorzhdan
Copy link
Contributor

This extends the existing auto-conformance mechanism to synthesize the conformances to CxxConvertibleToCollection protocol for C++ sequence types.

This means that the developer can now call Array(myCxxSequence) or Set(myCxxSequence) without adding any extensions manually.

This extends the existing auto-conformance mechanism to synthesize the conformances to `CxxConvertibleToCollection` protocol for C++ sequence types.

This means that the developer can now call `Array(myCxxSequence)` or `Set(myCxxSequence)` without adding any extensions manually.
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Nov 29, 2022
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test macOS

@egorzhdan egorzhdan merged commit 9f54289 into main Dec 1, 2022
@egorzhdan egorzhdan deleted the egorzhdan/synthesize-cxx-convertible branch December 1, 2022 11:44
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.

1 participant