Howdy,
My class PCCBeta has a member ScopedPointer<PCCBeta::User> user
.
According to the debugger, user
looks like this:
As you can see, isAnonymous == true
. However the following expressions all evaluate to false:
bool a = user->isAnonymous;
bool b = (*user).isAnonymous;
bool c = user->isAnonymous == true;
bool d = (*user).isAnonymous == true;
As the debugger shows:
All the debugger output above is from the same breakpoint.
I’ve tried to replicate this but to no avail. PCCBeta::User is a nested class and the above code is being called within a function of the class PCCBeta. Wondering if the class nesting (which I haven’t played with much before) may be an interference. Also: isAnonymous
is a public member of PCCBeta::User
.
Thanks in advance for any thoughts you may have!
Cheers