Skip to content

[cxx-interop] Conform std::set to ExpressibleByArrayLiteral #76830

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
Oct 3, 2024

Conversation

egorzhdan
Copy link
Contributor

Swift's own Set conforms to ExpressibleByArrayLiteral. This change conforms instantiations of C++ std::set to ExpressibleByArrayLiteral as well.

This makes it possible to pass an array literal as an argument to a function that takes a std::set as parameter.

rdar://137126325

Swift's own `Set` conforms to `ExpressibleByArrayLiteral`. This change conforms instantiations of C++ `std::set` to `ExpressibleByArrayLiteral` as well.

This makes it possible to pass an array literal as an argument to a function that takes a `std::set` as parameter.

rdar://137126325
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Oct 2, 2024
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@Xazax-hun Xazax-hun left a comment

Choose a reason for hiding this comment

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

LGTM!

@egorzhdan egorzhdan merged commit 9169d81 into main Oct 3, 2024
3 checks passed
@egorzhdan egorzhdan deleted the egorzhdan/cxx-set-array-literal branch October 3, 2024 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.

2 participants