From 7f137ddfa9a09b40de8f066562a4e47340853471 Mon Sep 17 00:00:00 2001 From: Lucas Rubian Schatz Date: Sun, 5 Nov 2023 20:52:14 -0300 Subject: [PATCH] Update statement.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix build error on Ubuntu error: no matching function for call to ‘std::function::function()’ --- src/ibpp/statement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ibpp/statement.cpp b/src/ibpp/statement.cpp index 2c85359a..c6b59a3d 100644 --- a/src/ibpp/statement.cpp +++ b/src/ibpp/statement.cpp @@ -717,7 +717,7 @@ std::string StatementImpl::ParametersParser(std::string sql) //Here we verify, the job done recently was time lost? std::string isDML(sql); - isDML.erase(isDML.begin(), std::find_if(isDML.begin(), isDML.end(), std::not1(std::function(std::isspace)))); //lTrim + isDML.erase(isDML.begin(), std::find_if(isDML.begin(), isDML.end(), [](int c) { return !std::isspace(c); })); //lTrim std::transform(isDML.begin(), isDML.end(), isDML.begin(), [](char c) { return (char)std::toupper(c); }); //UpperCase (only bothered about ASCII text, cast is okay)