From 8272a16e90fe8de7098d566dab8f19ceb3da3f74 Mon Sep 17 00:00:00 2001 From: Benedikt Galbavy Date: Sat, 18 Nov 2023 15:20:14 +0100 Subject: [PATCH] fix to range --- server/server.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/server.cpp b/server/server.cpp index 0875608..175cbdc 100644 --- a/server/server.cpp +++ b/server/server.cpp @@ -3,6 +3,8 @@ #include "mail.h" +#include +#include #include #include #include @@ -21,7 +23,6 @@ #include #include #include -#include #include @@ -500,5 +501,6 @@ bool ichar_equals(char a, char b) bool iequals(std::string_view lhs, std::string_view rhs) { - return std::ranges::equal(lhs, rhs, ichar_equals); + // return std::ranges::equal(lhs, rhs, ichar_equals); + return std::equal(lhs.begin(), lhs.end(), rhs.begin(), ichar_equals); } \ No newline at end of file