A
Alex Vinokur
Hi,
What is the difference between reinterpret_cast<std::size_t>(p) and reinterpret_cast<std::size_t&>(p)?
char* p = new char[100];
std::size_t s1 = reinterpret_cast<std::size_t>(p);
std::size_t s2 = reinterpret_cast<std::size_t&>(p);
Thanks
What is the difference between reinterpret_cast<std::size_t>(p) and reinterpret_cast<std::size_t&>(p)?
char* p = new char[100];
std::size_t s1 = reinterpret_cast<std::size_t>(p);
std::size_t s2 = reinterpret_cast<std::size_t&>(p);
Thanks