File 003-cpp17-const.patch of Package cpluff
From a58c6dbcbd00d747d7e24c089c7ebcef50e8b17e Mon Sep 17 00:00:00 2001
From: Johannes Lehtinen <johannes.lehtinen@iki.fi>
Date: Thu, 30 Oct 2025 06:25:17 +0200
Subject: [PATCH] C++17 compatibility: Add missing const qualifier to the
comparison operator in less_str.
---
libcpluffxx/cpluffxx/info.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcpluffxx/cpluffxx/info.h b/libcpluffxx/cpluffxx/info.h
index bd0f3f1..c4112ff 100644
--- a/libcpluffxx/cpluffxx/info.h
+++ b/libcpluffxx/cpluffxx/info.h
@@ -51,7 +51,7 @@ class less_str {
* @param s2 the second string to compare
* @return whether the first string comes before the second string
*/
- inline bool operator()(const char* const& s1, const char* const& s2) {
+ inline bool operator()(const char* const& s1, const char* const& s2) const {
return strcmp(s1, s2) < 0;
}
};