Added 3 param version, it works with std::mem_fn.