Add default copy assignment operator to data classes (#32)

This commit is contained in:
Tindy X 2023-11-14 15:45:11 +08:00 committed by GitHub
parent 0dd9df49d7
commit 41f238ceb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,8 @@ namespace libcron
CronData(const CronData&) = default;
CronData& operator=(const CronData&) = default;
bool is_valid() const
{
return valid;

View File

@ -25,6 +25,8 @@ namespace libcron
CronSchedule(const CronSchedule&) = default;
CronSchedule& operator=(const CronSchedule&) = default;
std::tuple<bool, std::chrono::system_clock::time_point>
calculate_from(const std::chrono::system_clock::time_point& from) const;