fix unused variable warning in member_function_ptr