Use std::bind instead of lambda.