J
John Goche
Hello,
I have a question regarding an instance of casting a
class to a pointer which I came across:
The Symbian class CBufSeg has the following function:
virtual TPtr8 Ptr(TInt aPos);
I would like to know why it is possible to cast a TPtr8 to a TText *.
Since TPtr8 is a class, and the compiler does not agree that its text
member will be compacted at the beginning of the class, I don't see
how the cast can make sense.
Thanks,
JG
I have a question regarding an instance of casting a
class to a pointer which I came across:
The Symbian class CBufSeg has the following function:
virtual TPtr8 Ptr(TInt aPos);
I would like to know why it is possible to cast a TPtr8 to a TText *.
Since TPtr8 is a class, and the compiler does not agree that its text
member will be compacted at the beginning of the class, I don't see
how the cast can make sense.
Thanks,
JG