std::function to member function Funcp func = std::bind(&A::func, &a, std::placeholders::_1, std::placeholders::_2);