Skip to content

Conversation

Huddie
Copy link
Contributor

@Huddie Huddie commented Jun 1, 2022

We've updated how CXX operators get imported into swift. We don't currently support templated operators aside from the subscript operator.

@Huddie
Copy link
Contributor Author

Huddie commented Jun 1, 2022

@swift-ci please smoke test

#include <memory>
#include <string>
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume the double inclusion of the string header is a mistake?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is from a different PR (which Im branched off of) but this is a good catch thanks!

Copy link
Contributor

@NSAntoine NSAntoine Jun 1, 2022

Choose a reason for hiding this comment

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

👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressing in this PR actually since this is a follow up and cleaning up this include is fine here I think

@hyp hyp added the c++ interop Feature: Interoperability with C++ label Jun 1, 2022
@Huddie
Copy link
Contributor Author

Huddie commented Jun 1, 2022

@swift-ci please smoke test

@Huddie Huddie marked this pull request as ready for review June 2, 2022 12:48
@Huddie Huddie force-pushed the update-cxx-operator-impl-templates-off branch from 6532e6d to 0d7a041 Compare June 2, 2022 17:00
@Huddie
Copy link
Contributor Author

Huddie commented Jun 2, 2022

@swift-ci please smoke test

@Huddie Huddie requested a review from zoecarver June 2, 2022 17:01
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.

Thank you for submitting this so quickly! This looks good to me :)

@zoecarver zoecarver merged commit 198e967 into swiftlang:main Jun 2, 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.

4 participants