Skip to content

[cxx-interop] Fix friend operators that come from class template specializations. #61181

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 2 commits into from
Oct 17, 2022

Conversation

zoecarver
Copy link
Contributor

No description provided.


var StdMapTestSuite = TestSuite("std::map")

extension Map.const_iterator : UnsafeCxxInputIterator { }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ktoso ktoso self-requested a review September 19, 2022 23:57
Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

Awesome, thank you 👍

@ktoso
Copy link
Contributor

ktoso commented Sep 20, 2022

This is kind of related to: rdar://100021897 as it'd mean we don't have to use [] but just could use the find

@zoecarver zoecarver added the c++ interop Feature: Interoperability with C++ label Sep 29, 2022
@zoecarver zoecarver marked this pull request as ready for review September 30, 2022 23:49
@zoecarver
Copy link
Contributor Author

@swift-ci please test

Comment on lines 9 to 10
import StdMap
import std.map
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@egorzhdan am I supposed to just use StdMap. If so, that caused problems locally (looking up operator==, I think).

@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test

@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test

@zoecarver zoecarver merged commit 4603c84 into swiftlang:main Oct 17, 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