How to correctly cast pointer to integer in C++

Hi, I was just wondering if there's a C++ way to make unsigned integer from pointer to any type. The only way I found is the standard C-like cast. The system is 32-bit.
Last edited on
Not sure why you want to do that, but you need to use reinterpret_cast for this.
Thank you:) I thought that reinterpret_cast works only with pointers, but it seems it's working with integers also.

About your question, I just wanted to get a start address of an array of uint64_t.
Topic archived. No new replies allowed.