Skip to content

[cxx-interop] Import const T& parameters as T. #41611

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 4, 2022

Conversation

zoecarver
Copy link
Contributor

This change allows Swift code to pass immutable values to const references in C++.

@zoecarver
Copy link
Contributor Author

@swift-ci please test.

@zoecarver zoecarver added the c++ interop Feature: Interoperability with C++ label Mar 3, 2022
@hyp
Copy link
Contributor

hyp commented Mar 3, 2022

Thanks Zoe!

This change allows Swift code to pass immutable values to const references in C++.
@zoecarver zoecarver force-pushed the const-ref-as-value branch from dcb4ac3 to ebb21d7 Compare March 3, 2022 22:42
@zoecarver
Copy link
Contributor Author

@swift-ci please test.

@zoecarver zoecarver merged commit 6d19bab into swiftlang:main Mar 4, 2022
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