From 10cdec3b9f743e6fe9deaa63d2db50b2cd48e8c1 Mon Sep 17 00:00:00 2001
From: patrick96
Date: Sun, 23 Oct 2022 15:13:51 +0200
Subject: [PATCH] build: Fix deprecation errors
---
src/utils/string.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/utils/string.cpp b/src/utils/string.cpp
index 00c7b7e6..aea57634 100644
--- a/src/utils/string.cpp
+++ b/src/utils/string.cpp
@@ -128,7 +128,7 @@ namespace string_util {
* Trims all characters that match pred from the left
*/
string ltrim(string value, function pred) {
- value.erase(value.begin(), find_if(value.begin(), value.end(), not1(pred)));
+ value.erase(value.begin(), find_if(value.begin(), value.end(), std::not_fn(pred)));
return value;
}
@@ -136,7 +136,7 @@ namespace string_util {
* Trims all characters that match pred from the right
*/
string rtrim(string value, function pred) {
- value.erase(find_if(value.rbegin(), value.rend(), not1(pred)).base(), value.end());
+ value.erase(find_if(value.rbegin(), value.rend(), std::not_fn(pred)).base(), value.end());
return value;
}