diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-13 18:02:04 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-14 14:31:45 -0700 |
| commit | 392b3a50ead4092ea3688385b492e5455c5f6ced (patch) | |
| tree | c4bc6a563517694243ded3ef2c45c9a3eda7a101 /toolsrc/src/VcpkgPaths.cpp | |
| parent | 66017aa2c3873c95da863077b184529c96c299b8 (diff) | |
| download | vcpkg-392b3a50ead4092ea3688385b492e5455c5f6ced.tar.gz vcpkg-392b3a50ead4092ea3688385b492e5455c5f6ced.zip | |
Use Util::find_if/not()
Diffstat (limited to 'toolsrc/src/VcpkgPaths.cpp')
| -rw-r--r-- | toolsrc/src/VcpkgPaths.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/VcpkgPaths.cpp b/toolsrc/src/VcpkgPaths.cpp index dd1cdf234..6fc0538fd 100644 --- a/toolsrc/src/VcpkgPaths.cpp +++ b/toolsrc/src/VcpkgPaths.cpp @@ -40,7 +40,7 @@ namespace vcpkg static Optional<fs::path> find_if_has_equal_or_greater_version(const std::vector<fs::path>& candidate_paths, const std::wstring& version_check_arguments, const std::array<int, 3>& expected_version) { - auto it = std::find_if(candidate_paths.cbegin(), candidate_paths.cend(), [&](const fs::path& p) + auto it = Util::find_if(candidate_paths, [&](const fs::path& p) { const std::wstring cmd = Strings::wformat(LR"("%s" %s)", p.native(), version_check_arguments); return exists_and_has_equal_or_greater_version(cmd, expected_version); |
