Skip to content

Conversation

susmonteiro
Copy link
Contributor

Since C++20, we can use the requires expression to make a copy constructor available or not depending on a set of constraints. So, when importing a type as copyable, make sure its copy constructor is eligible.

rdar://159929115

@susmonteiro
Copy link
Contributor Author

@swift-ci please smoke test

@susmonteiro susmonteiro merged commit cd01e91 into swiftlang:main Sep 5, 2025
3 checks passed
@susmonteiro susmonteiro deleted the susmonteiro/copy-operations-requires-clause branch September 30, 2025 11:10
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