summaryrefslogtreecommitdiff
path: root/ftparchive
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-05-25 11:15:08 +0200
committerJulian Andres Klode <jak@debian.org>2025-05-25 11:21:24 +0200
commit115b7257d9f29bd17b97b1cda727a67e29021f8c (patch)
tree5bbbc08cd8b412d13c7951276a160896628fb593 /ftparchive
parent5bfea97d7b3c6f4fcaa56c24d6f3591b1862b86b (diff)
Bump CMAKE_CXX_STANDARD to 23 and fix code
ftparchive/contents.h failed with operator< defined only, so define operator<=> instead. The operator and FileCopyType constructor both had a warning about not throwing and adding a noexcept, so add one
Diffstat (limited to 'ftparchive')
-rw-r--r--ftparchive/contents.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftparchive/contents.h b/ftparchive/contents.h
index e23191cd3..a78f9d5e9 100644
--- a/ftparchive/contents.h
+++ b/ftparchive/contents.h
@@ -27,7 +27,7 @@ class GenContents
{
const char *data;
const char *c_str() const { return data; }
- bool operator<(const StringInBlock &other) const { return strcmp(data, other.data) < 0; }
+ auto operator<=>(const StringInBlock &other) const noexcept { return strcmp(data, other.data); }
};
struct BigBlock
{