From 1fd5f1489b28c9c3160181b5b6e0160549d2df5b Mon Sep 17 00:00:00 2001 From: marques-bruno Date: Mon, 1 Aug 2022 20:34:19 +0200 Subject: [PATCH] Fix c++0x compilation --- src/CommonAPI/Utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CommonAPI/Utils.cpp b/src/CommonAPI/Utils.cpp index 8f7f6e7..18c6105 100644 --- a/src/CommonAPI/Utils.cpp +++ b/src/CommonAPI/Utils.cpp @@ -31,7 +31,7 @@ void trim(std::string& toTrim) { std::find_if( toTrim.begin(), toTrim.end(), - std::not1(std::ptr_fun(isspace)) + std::not1(std::function(isspace)) ) ); @@ -39,7 +39,7 @@ void trim(std::string& toTrim) { std::find_if( toTrim.rbegin(), toTrim.rend(), - std::not1(std::ptr_fun(isspace))).base(), + std::not1(std::function(isspace))).base(), toTrim.end() ); }