member pointer as argument works instead of function pointer