diff --git a/Server/Server/StaticHelper.cpp b/Server/Server/StaticHelper.cpp index 086312c..fac8ade 100644 --- a/Server/Server/StaticHelper.cpp +++ b/Server/Server/StaticHelper.cpp @@ -10,9 +10,9 @@ std::string StaticHelper::ToUpper(std::string_view str) void StaticHelper::Trim(std::string& str) { - auto it1 = std::find_if(str.begin(), str.end(), [](char ch) { return !std::isspace(ch); }); + auto it1 = std::ranges::find_if(str, [](char ch) { return !std::isspace(ch); }); str.erase(str.begin(), it1); - auto it2 = std::find_if(str.rbegin(), str.rend(), [](char ch) { return !std::isspace(ch); }); + auto it2 = std::ranges::find_if(str.rbegin(), str.rend(), [](char ch) { return !std::isspace(ch); }); str.erase(it2.base(), str.end()); }