From 898a941b103c7f1e837741ae8c3480d92e4f7aa3 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 27 Nov 2024 13:55:47 +0100 Subject: Adjust previous commit to compile with clang on systems that have gcc 12 installed --- src/common/Utilities/Util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/Utilities/Util.cpp b/src/common/Utilities/Util.cpp index dded1af889f..93bc3b853a5 100644 --- a/src/common/Utilities/Util.cpp +++ b/src/common/Utilities/Util.cpp @@ -862,7 +862,7 @@ bool StringEqualI(std::string_view a, std::string_view b) bool StringContainsStringI(std::string_view haystack, std::string_view needle) { return haystack.end() != - std::ranges::search(haystack, needle, {}, charToLower, charToLower).begin(); + std::search(haystack.begin(), haystack.end(), needle.begin(), needle.end(), [](char c1, char c2) { return charToLower(c1) == charToLower(c2); }); } bool StringCompareLessI(std::string_view a, std::string_view b) -- cgit v1.2.3