Skip to content

[cxx-interop] Add operators for comparing and concatenating std::strings #64579

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
Mar 24, 2023

Conversation

egorzhdan
Copy link
Contributor

The original C++ operators are not currently imported into Swift because they are defined as a non-member templated functions.

This change adds the operators as Swift extension functions. This also adds an Equatable conformance for std::string.

rdar://107017882

…ing`s

The original C++ operators are not currently imported into Swift because they are defined as a non-member templated functions.

This change adds the operators as Swift extension functions. This also adds an `Equatable` conformance for `std::string`.

rdar://107017882
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Mar 23, 2023
@egorzhdan egorzhdan requested review from zoecarver and hyp as code owners March 23, 2023 18:13
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan merged commit 91810ee into main Mar 24, 2023
@egorzhdan egorzhdan deleted the egorzhdan/std-string-concat branch March 24, 2023 17:40
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