1 2 3 4 5 6 7 8
struct A { int membervar; }; typedef const A type; int type::* getmemberptr() { return &type::membervar; }