Quote:
Originally posted by Fordy
As I said, in my 2 examples with the most varying results for sizeof on a member function pointer (VC++6 - 4, Codewarrior 5 - 12), both compilers produced the same code to call the function.....they both loaded the address for the object into a register and then issued the call - same amount of code upto the actual function declarations!
Also both cases were in debug mode without any real optimisation...
Personally I wouldnt get too hung up on the sizeof returned from these function pointers.........
By the way you're describing it this sounds as though you are saying that member function pointers are just a single call based on an actual pointer to a memory location. That would not account for polymorphism!