How can I use a c++ template as an a parameter to an objective-c method?
essentially I want to do something like this:
template<typename T>
- (void)method:(T)arg
but that doesn’t work. according to this document this is possible however it does not provide any examples. Does anyone know how tot do this?
No you can’t do that.
Even if it is possible to declare that template, it is useless as Objective-C methods cannot be overloaded by type.