diff --git a/libcron/Task.h b/libcron/Task.h index d8060f9..322e9e3 100644 --- a/libcron/Task.h +++ b/libcron/Task.h @@ -4,6 +4,7 @@ #include "CronData.h" #include "CronSchedule.h" #include +#include namespace libcron { @@ -11,7 +12,7 @@ namespace libcron { public: - Task(const std::string name, const CronSchedule schedule, std::function task) + Task(std::string name, const CronSchedule schedule, std::function task) : name(std::move(name)), schedule(std::move(schedule)), task(std::move(task)) { }