Pointers-to-members

Jason Merrill jason at cygnus.com
Wed Feb 23 19:42:18 UTC 2000


>>>>> Mark Mitchell <mark at codesourcery.com> writes:

 > What does it mean to be a "class containing the original member"?  I
 > wasn't sure whether given:

 >   struct S { char c; };
 >   struct U { char d; };
 >   struct T : public U, public S { };

 > tat `T' contains the "original member" `d', or whether only `U' does,
 > for the purposes of this discussion.

Ah.  I was thinking of

struct S { char c; };
struct U { char d; };
struct T: public U, public S { char e; };

t = &T::e;
s = static_cast<sp>(t);

But now that I think about it, 'e' would still be at a positive offset from
an S*, so my point is invalid.  What you're saying makes sense to me now.

Jason




More information about the cxx-abi-dev mailing list