From 115b7257d9f29bd17b97b1cda727a67e29021f8c Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sun, 25 May 2025 11:15:08 +0200 Subject: 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 --- ftparchive/contents.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ftparchive') 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 { -- cgit v1.2.3-70-g09d2