I have some classes and a pointer, which class is void*, pointing to one of these classes.
I also have the name of that class in a string variable and I would like to cast that void pointer to that class.
I would like to do something like that:
string className;
className = "int";
(className *) voidPointer;
is there any way to do that??
thank you in advance!