Hi,
I am just wondering if it is at all possible to redefine the type of a pointer at runtime? For example, say I have char *pBuffer, but instead of it pointing to a type char, I now want it to point to a type of short signed *pBuffer. However, I still want to be able to use the same indentifier i.e. pBuffer. I know you can use the reinterpret_cast operator, but that is not permenant, and I don't want to be using that constantly throughout my for loop when subscripting.
Any Ideas?
Thanks, Dene.



LinkBack URL
About LinkBacks


