I have a simple problem like this!
class1 *a = new class1();
class1 *b = a;
delete a;
a= NULL;
Now I want to check if b is NULL (or is deleted) also, but b always point to where a point previously. This is problematic when I want to use b, but a already deleted before!
if (b){
//do something here
}
Thanks for reading!