Comparing custom object with NULL
I have a custom object ( GameScreen ) that I want to compare with NULL value
void Component::setParent(GameScreen *gs)
if (parent != NULL)
std::cout<<"INFO: Parent anterior removido"<<std::endl;
The problem is that although parent has no value, parent is not NULLand I
¿Any idea to resolve this?
If you want it to be a null pointer, make it a null pointer.
Jajajaja, sorry this stupid mistake.
Topic archived. No new replies allowed.