store fs::path instead of std::string
MODIFY
include/vcpkg/binaryparagraph.h
include/vcpkg/binaryparagraph.h
#include <vcpkg/packagespec.h>
#include <vcpkg/sourceparagraph.h>
-#include <unordered_map>
+#include <map>
namespace vcpkg
{
@@ -40,7 +40,7 @@ namespace vcpkg
std::vector<std::string> default_features;
std::vector<std::string> depends;
std::string abi;
- std::unordered_map<std::string, std::string> external_files;
+ std::map<fs::path, std::string> external_files;
mutable ConsistencyState consistency = ConsistencyState::UNKNOWN;
};

MODIFY
src/vcpkg/binaryparagraph.cpp
src/vcpkg/binaryparagraph.cpp
@@ -100,7 +100,9 @@ namespace vcpkg
this->spec);
}
- for (int i = 0; i < external_files_or_hashes.size(); i += 2)
+ for (decltype(external_files_or_hashes)::size_type i = 0;
+ i < external_files_or_hashes.size();
+ i += 2)
{
external_files.emplace(
std::move(external_files_or_hashes[i]),

store fs::path instead of std::string