Have an Objective-C++ function. (The file has the correct .mm extension).
int SPGetNumericAttribute(NSMutableString* line, NSString* &attr) {...}
Some code calls as follows:
NSString* queryAttr = nil;
int res = SPGetNameAttribute(line, queryAttr); <-- error
Compiler complains:
No matching function call for 'SPGetNameAttribute'.
Is there a technical reason why you can't pass an Objective-C object to a C++ reference parameter? My guess is something to do with ARC.