Cannot bridge `std::tuple<..>` to Swift

Hey all - has anyone managed to successfully bridge an std::tuple<..> to Swift?
I can't seem to get it to compile - the autogenerated Project-Swift.h header always contains invalid syntax; instead of std::tuple<...> it generates std::tuple<<...>> (double < and > brackets).

I've created an issue on GitHub: [cxx-interop] C++ Tuples in `*-Swift.h` wrongfully have an extraneous angled brackets (`std::tuple<<double>>` vs `std::tuple<double>`) · Issue #75865 · swiftlang/swift · GitHub - but haven't received any feedback yet.

Any ideas?

Example of the invalid -Swift.h header (for std::variant, but same applies to std::tuple):

1 Like