boost::shared_ptr in Objective-C++
- by John Smith
This is a better understanding of a question I had earlier.
I have the following Objective-C++ object
@interface OCPP
{
MyCppobj * cppobj;
}
@end
@implementation OCPP
-(OCPP *) init
{
cppobj = new MyCppobj;
}
@end
Then I create a completely differently obj which needs to use cppobj in a boost::shared_ptr (I have no choice in this…