Pointer-to-member function of class doesn't hold the "exact address" like a regular pointer does. It stores more information than regular function pointer.
So when you use sizeof
to measure the size of a pointer-to-member function of a class, you should not expect that it will be same size as a regular function pointer.