Member function pointers are not actual pointers. You should look at them as opaque structures. What the method pointer contains:
struct method_pointer { bool method_is_virtual; union { unsigned vtable_offset;
If you can apply this to void * (you cannot), all you have is a pointer to a structure, not a pointer to a code. Therefore, the <() operator is undefined, since the value of the struct pointer is always where it occurs in memory.
In addition to this, what do you sort by?
source share