-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from valeriyvan/deprecate
Solves deprecation warning of using ptr_fun<int, int>
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// | ||
// Programmer: Craig Stuart Sapp <[email protected]> | ||
// Creation Date: Sat Aug 8 12:24:49 PDT 2015 | ||
// Last Modified: Fri Nov 15 12:54:06 WET 2019 | ||
// Last Modified: Thu Nov 21 14:49:55 CET 2019 | ||
// Filename: humlib.h | ||
// URL: https://github.com/craigsapp/humlib/blob/master/include/humlib.h | ||
// Syntax: C++11 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// | ||
// Programmer: Craig Stuart Sapp <[email protected]> | ||
// Creation Date: Sat Aug 8 12:24:49 PDT 2015 | ||
// Last Modified: Fri Nov 15 12:54:06 WET 2019 | ||
// Last Modified: Thu Nov 21 14:49:55 CET 2019 | ||
// Filename: /include/humlib.cpp | ||
// URL: https://github.com/craigsapp/humlib/blob/master/src/humlib.cpp | ||
// Syntax: C++11 | ||
|
@@ -3237,9 +3237,9 @@ string Convert::getHumNumAttributes(const HumNum& num) { | |
string Convert::trimWhiteSpace(const string& input) { | ||
string s = input; | ||
s.erase(s.begin(), std::find_if(s.begin(), s.end(), | ||
std::not1(std::ptr_fun<int, int>(isspace)))); | ||
[](int c) {return !std::isspace(c);})); | ||
s.erase(std::find_if(s.rbegin(), s.rend(), | ||
std::not1(std::ptr_fun<int, int>(isspace))).base(), s.end()); | ||
[](int c) {return !std::isspace(c);}).base(), s.end()); | ||
return s; | ||
} | ||
|
||
|