hi, I'm reading a c++ book which contains this code:
Pizza* p = data.retrieve(key);
if(p != NULL)
// do stuff
This is causing a type missmatch error in visual studio 2017. What happens? And why does this not work?
The statement above is much cleaner than writing:
Pizza *p = data.retrieve(key);
if((int*)&p == NULL) { // works
}