Skip to content

[cxx-interop] Make std::string::append usable from Swift #66753

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
Jun 20, 2023

Conversation

egorzhdan
Copy link
Contributor

This adds a new Swift overload for append that takes another std::string as a parameter.

The original C++ overload for append is not exposed into Swift because it returns a mutable reference string&.

rdar://107018724

This adds a new Swift overload for `append` that takes another `std::string` as a parameter.

The original C++ overload for `append` is not exposed into Swift because it returns a mutable reference `string&`.

rdar://107018724
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Jun 19, 2023
@egorzhdan egorzhdan requested review from zoecarver and hyp as code owners June 19, 2023 19:52
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@zoecarver zoecarver 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 90faaee into main Jun 20, 2023
@egorzhdan egorzhdan deleted the egorzhdan/std-string-append branch June 20, 2023 17:26
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