Avatar
omochimetaru 9/25/2020 1:26 PM
This patch adds rudimentary support for C++ template functions in swift. There's still a lot lacking but, that mostly has to do with the clang type converter which can be updated with incre...
1:26 PM
template <class T> T add(T a, T b) { return a + b; } public func testAdd(x: Int32) -> Int32 { return add(x, x) }
1:27 PM
template <class T> T passThrough(T value) { return value; } public func testPassThroughAny(x: Any) -> Any { return passThrough(x) }