Say I have a C++ class:
class CppClass {
// class implementation.
}
And in Objective-C++ code I have a method:
+(id)someMethod:(Class)aClass;
Is there any way to convert type_info
to Class
?
No. Class
is a type that can be used to hold a pointer to an Objective-C "class object", an Objective-C object that represents an Objective-C class at runtime. C++ classes are not Objective-C classes, and don't have an Objective-C "class object".