Skip to content

Commit

Permalink
Update statement.cpp
Browse files Browse the repository at this point in the history
Fix build error on Ubuntu
error: no matching function for call to ‘std::function<int(int)>::function(<unresolved overloaded function type>)’
  • Loading branch information
arvanus committed Nov 5, 2023
1 parent fe36d28 commit 7f137dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ibpp/statement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int(int)>(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)

Expand Down

0 comments on commit 7f137dd

Please sign in to comment.