From 7e2f40a7b5a8d893af4190844ed5d4d4a822b097 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 10 Oct 2024 11:33:33 +0200 Subject: [PATCH] Add assigment-operator (otherwise compilation error). --- library/include/mobilisis/time_range.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/include/mobilisis/time_range.h b/library/include/mobilisis/time_range.h index 57493dd..c95f387 100644 --- a/library/include/mobilisis/time_range.h +++ b/library/include/mobilisis/time_range.h @@ -34,6 +34,13 @@ struct TimeRange { m_duration = timeRange.m_duration; return *this; } + + TimeRange &operator=(TimeRange const &timeRange) { + m_start = timeRange.m_start; + m_end = timeRange.m_end; + m_duration = timeRange.m_duration; + return *this; + } }; #endif // TIME_RANGE_H_INCLUDED