diff options
Diffstat (limited to 'server/src/time.cppm')
| -rw-r--r-- | server/src/time.cppm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/time.cppm b/server/src/time.cppm index 907cec4..d77a30b 100644 --- a/server/src/time.cppm +++ b/server/src/time.cppm | |||
| @@ -31,7 +31,7 @@ public: | |||
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | [[nodiscard]] auto except(period other) const | 33 | [[nodiscard]] auto except(period other) const |
| 34 | -> std::pair<std::optional<period>, std::optional<period>> | 34 | -> std::pair<std::optional<period>, std::optional<period>> |
| 35 | { | 35 | { |
| 36 | auto const before_start = start_; | 36 | auto const before_start = start_; |
| 37 | auto const before_end = other.start(); | 37 | auto const before_end = other.start(); |
| @@ -84,7 +84,7 @@ class period_seq | |||
| 84 | 84 | ||
| 85 | if (preds.size() < 2) | 85 | if (preds.size() < 2) |
| 86 | throw std::logic_error{ | 86 | throw std::logic_error{ |
| 87 | "period_seq::consolidate: amount of predicates should be >= 2" | 87 | "period_seq::consolidate: amount of predicates should be >= 2" |
| 88 | }; | 88 | }; |
| 89 | if (preds.front().second != ge) | 89 | if (preds.front().second != ge) |
| 90 | throw std::logic_error{"period_seq::consolidate: first element of preds " | 90 | throw std::logic_error{"period_seq::consolidate: first element of preds " |