mohamedLT
(mohamed latifi)
1
I am trying to use swift with the tweeny c++ library and I get this weird transformation
this is the function in c++ static tween<T, Ts...> from(T t, Ts... vs); and this it what swift shows me from(Vs: any, Ts: TS.Type)
any solution to this ??
This function unfortunately isn't usable directly from Swift at the moment. It has a return type that is dependent on the types of the arguments, which is not something that we support in Swift.
As a workaround, you could declare a helper function in C++ that would have a concrete return type and a specified number of arguments, and would invoke the original from function.