Add Promise-creation methods with __has_feature(objc_arc_fields)
lilyball opened this issue · comments
Lily Ballard commented
We have a few methods on TWLPromise
that we expose for Obj-C++ that return std::pair
or std::tuple
. Starting in Xcode 10 we can expose similar methods to Obj-C because C structs are allowed to have ARC object pointers in fields. We can test for this with __has_feature(objc_arc_fields)
.
The new methods we add should be omitted in C++ because the existing std::pair
and std::tuple
methods are better there.
Lily Ballard commented
I'm not sure what we should call them though, we can't re-use the same selector name.