diff options
| author | Rutger Broekhoff | 2026-08-28 22:17:10 +0200 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-08-28 22:17:10 +0200 |
| commit | 70643a9e4821bd11c3f363f1708fe420965467d1 (patch) | |
| tree | 65572b58e247248846628940a2aaca197a15d784 /server/src/time.cppm | |
| parent | 173cd34bdd0717d3f4beeac76b3296ecd46ada0d (diff) | |
| download | routemon-70643a9e4821bd11c3f363f1708fe420965467d1.tar.gz routemon-70643a9e4821bd11c3f363f1708fe420965467d1.zip | |
Format again
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 " |