diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-09-01 16:58:51 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-09-01 16:58:51 -0700 |
| commit | 95eadb8ddd7dfb7f0899055a98fa91485ed74dc8 (patch) | |
| tree | c483dd3aaa3d3b04bf9005abeedd4448bfad4444 /toolsrc/src/VcpkgPaths.cpp | |
| parent | 797c94caecc3df34e82a9d0a1d774551cdc8ff66 (diff) | |
| download | vcpkg-95eadb8ddd7dfb7f0899055a98fa91485ed74dc8.tar.gz vcpkg-95eadb8ddd7dfb7f0899055a98fa91485ed74dc8.zip | |
[VcpkgPaths.cpp] Don't modify and ref on the fly
Diffstat (limited to 'toolsrc/src/VcpkgPaths.cpp')
| -rw-r--r-- | toolsrc/src/VcpkgPaths.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/VcpkgPaths.cpp b/toolsrc/src/VcpkgPaths.cpp index 7d574006e..906a5e67f 100644 --- a/toolsrc/src/VcpkgPaths.cpp +++ b/toolsrc/src/VcpkgPaths.cpp @@ -318,9 +318,9 @@ namespace vcpkg // VS2017 Optional<Toolset> vs2017_toolset; - for (const fs::path& instance : vs2017_installation_instances) + for (const std::string& instance : vs2017_installation_instances) { - const fs::path vc_dir = instance / "VC"; + const fs::path vc_dir = fs::path{instance} / "VC"; // Skip any instances that do not have vcvarsall. const fs::path vcvarsall_dir = vc_dir / "Auxiliary" / "Build"; |
