Skip to content

Commit 41f238c

Browse files
authored
Add default copy assignment operator to data classes (#32)
1 parent 0dd9df4 commit 41f238c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libcron/include/libcron/CronData.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ namespace libcron
2121

2222
CronData(const CronData&) = default;
2323

24+
CronData& operator=(const CronData&) = default;
25+
2426
bool is_valid() const
2527
{
2628
return valid;

libcron/include/libcron/CronSchedule.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ namespace libcron
2525

2626
CronSchedule(const CronSchedule&) = default;
2727

28+
CronSchedule& operator=(const CronSchedule&) = default;
29+
2830
std::tuple<bool, std::chrono::system_clock::time_point>
2931
calculate_from(const std::chrono::system_clock::time_point& from) const;
3032

0 commit comments

Comments
 (0)