Replaced lambda with std::mem_fn