fix unused variable warning in member_function_ptr

With clang, a warning is emitted because 'rhs' is not used.