Hello.
Is there a way to check if a pointer to a class has been initialized or not?
For example with a struct, you can do the following:
It doesn't seem to work with classes.Code:struct some_struct* s;
if(s == NULL)
{
...statement...
}
The execution never stops at the conditional.Code:class some_class
{
...
};
some_class* s;
if(s == NULL)
{
...
}
So how do you check if a class pointer has been initialized or not?
Thanks.