即使在普通的x86 32位平台上,您也可以获得各种指针大小,例如:struct A {};struct B : virtual public A {};struct C {};struct D : public A, public C {};int main(){ cout << "A:" << sizeof(void (A::*)()) << endl; cout << "B:" << sizeof(void (B::*)()) << endl; cout << "D:" << sizeof(void (D::*)()) << endl;}在Visualc+2008下,我得到了4、12和8的指针到成员函数的大小.