-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
azure-storage-cpp: fix removed ptr_fun
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
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
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
13 changes: 13 additions & 0 deletions
13
recipes/azure-storage-cpp/all/patches/7.5.0-fix-removed-ptr_fun.patch
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- Microsoft.WindowsAzure.Storage/src/util.cpp | ||
+++ Microsoft.WindowsAzure.Storage/src/util.cpp | ||
@@ -334,8 +334,8 @@ | ||
|
||
utility::string_t str_trim_starting_trailing_whitespaces(const utility::string_t& str) | ||
{ | ||
- auto non_space_begin = std::find_if(str.begin(), str.end(), std::not1(std::ptr_fun<int, int>(isspace))); | ||
- auto non_space_end = std::find_if(str.rbegin(), str.rend(), std::not1(std::ptr_fun<int, int>(isspace))).base(); | ||
+ auto non_space_begin = std::find_if(str.begin(), str.end(), [](unsigned char c) { return !std::isspace(c); }); | ||
+ auto non_space_end = std::find_if(str.rbegin(), str.rend(), [](unsigned char c) { return !std::isspace(c); }).base(); | ||
return utility::string_t(non_space_begin, non_space_end); | ||
} | ||
|