L
Lionel Zhou
Dear Group;
Say i have to convert a point of class A to class B. If i use (B
*)pointer_of_class_A it won't pass compilation but if i use (B *)(void
*) pointer_of_class_A it will compile. My question is that is there a
better way to do this? i have tried the c++ style reinterpret_cast
like reinterpret_cast<B>pointer_of_class_A it doesn't work either.
Could someone enlighten me on this?
TIA!
Say i have to convert a point of class A to class B. If i use (B
*)pointer_of_class_A it won't pass compilation but if i use (B *)(void
*) pointer_of_class_A it will compile. My question is that is there a
better way to do this? i have tried the c++ style reinterpret_cast
like reinterpret_cast<B>pointer_of_class_A it doesn't work either.
Could someone enlighten me on this?
TIA!