S
shuisheng
Dear All,
I have a probably simple question but annoying me a lot.
For example:
std::stringstream ss;
int * p = new int(1);
ss << p; // Output the address
void * q;
ss >> q; // I want to input the address, but give a compilation error.
if (q != NULL)
...
Any way to read an address and see if it is valid?
Thanks a lot!
Shuisheng
I have a probably simple question but annoying me a lot.
For example:
std::stringstream ss;
int * p = new int(1);
ss << p; // Output the address
void * q;
ss >> q; // I want to input the address, but give a compilation error.
if (q != NULL)
...
Any way to read an address and see if it is valid?
Thanks a lot!
Shuisheng