diff options
| author | Robert Schumacher <ras0219@outlook.com> | 2017-04-13 02:15:42 -0700 |
|---|---|---|
| committer | Robert Schumacher <ras0219@outlook.com> | 2017-04-13 02:15:42 -0700 |
| commit | c92623216d0cda5e665439cc778667fd521eefeb (patch) | |
| tree | fd537ce9b1c413ad0627014056ae117fc483c6bb /toolsrc/src/vcpkglib.cpp | |
| parent | 3739e8e0b998b14c0f320c21618057e50698c51d (diff) | |
| download | vcpkg-c92623216d0cda5e665439cc778667fd521eefeb.tar.gz vcpkg-c92623216d0cda5e665439cc778667fd521eefeb.zip | |
Revert "Use Util::keep_if()"
This reverts commit 3739e8e0b998b14c0f320c21618057e50698c51d.
Diffstat (limited to 'toolsrc/src/vcpkglib.cpp')
| -rw-r--r-- | toolsrc/src/vcpkglib.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/toolsrc/src/vcpkglib.cpp b/toolsrc/src/vcpkglib.cpp index fb1f39256..5e847019f 100644 --- a/toolsrc/src/vcpkglib.cpp +++ b/toolsrc/src/vcpkglib.cpp @@ -4,7 +4,6 @@ #include "Paragraphs.h" #include "metrics.h" #include "vcpkg_Strings.h" -#include "vcpkg_Util.h" namespace vcpkg { @@ -202,10 +201,12 @@ namespace vcpkg upgrade_to_slash_terminated_sorted_format(&installed_files_of_current_pgh, listfile_path); // Remove the directories - Util::keep_if(installed_files_of_current_pgh, [](const std::string& file) -> bool - { - return file.back() != '/'; - }); + installed_files_of_current_pgh.erase( + std::remove_if(installed_files_of_current_pgh.begin(), installed_files_of_current_pgh.end(), [](const std::string& file) -> bool + { + return file.back() == '/'; + } + ), installed_files_of_current_pgh.end()); StatusParagraphAndAssociatedFiles pgh_and_files = { *pgh, SortedVector<std::string>(std::move(installed_files_of_current_pgh)) }; installed_files.push_back(std::move(pgh_and_files)); |
