Why does the empty() from a string object return false, despite it being empty. The string is actually from an object pointer. Debugging shows that the pointer does not have any data, at the string object. So why does string return false, if there is clearly no string values there.
Especially, at the if statement, looking at the string c++ documentation, the expression obj->name.empty() is suppose to return true due to its lack of data, at that location in memory.
I know its because the pointer has been deleted, but does the program (specifically in this case empty()) count the junk values that are present at that location as real values(in this case as strings).