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; }