I\'m working on a school project that involves porting a large piece of C++ code on an experimental piece of hardware. Unfortunately, that hardware is 64-bit and the code contai
I hit this same problem in a project without C++11, and worked around it like this:
inline int PtrToInt(void* ptr) { void* clang[1]; clang[0] = ptr; return *(int*)clang; }