Hi, I was wondering about two things:
What does *& mean? I know it could be interpreted as "A pointer to a reference," but when would one use such an operator? For example:
I don't understand exactly what they're doing and why. (Note that ClassV2 inherits from ClassV1)Code:ClassV1 *Info; // .. initialize it elsewhere ... ClassV2*& Info2 = (ClassV2*&)Info;
The second operator I've seen is !!
return !!(some expression); // this is inside a function
It seems to me that it just makes sure that the expression returns a bool? Is this used when you have an expression returning an int but you want to force it to return a bool? That's my guess. Anyways, thanks in advance, any input would be appreciated.