#include <boost/algorithm/string.hpp>
+using std::make_shared;
using std::min;
using std::shared_ptr;
using std::string;
string body = Config::instance()->notification_email();
boost::algorithm::replace_all(body, "$JOB_NAME", _job->name());
boost::algorithm::replace_all(body, "$JOB_STATUS", _job->status());
- JobManager::instance()->add_after(_job, shared_ptr<Job>(new SendNotificationEmailJob(body)));
+ JobManager::instance()->add_after(_job, make_shared<SendNotificationEmailJob>(body));
}
}
}