aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Romero <romerosanchezv@gmail.com>2019-10-17 22:09:18 -0700
committerGitHub <noreply@github.com>2019-10-17 22:09:18 -0700
commit69a5c70f8dca92a5bda67b8b417daaa9fb6472b7 (patch)
treea892b6a312afcb2d38a5d3bdfbb921d0b019c110
parent94ce38b45ae6905ef0ce8e2780e597d18909bd19 (diff)
parent78c0fd26c4e75b595583c7ca671c32653518f3b4 (diff)
downloadvcpkg-69a5c70f8dca92a5bda67b8b417daaa9fb6472b7.tar.gz
vcpkg-69a5c70f8dca92a5bda67b8b417daaa9fb6472b7.zip
Merge pull request #8638 from sryze/vs2017-build-fix
Fix compile error in Visual Studio 2017 15.1
-rw-r--r--toolsrc/src/vcpkg/install.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg/install.cpp b/toolsrc/src/vcpkg/install.cpp
index 009965887..21be2d7b0 100644
--- a/toolsrc/src/vcpkg/install.cpp
+++ b/toolsrc/src/vcpkg/install.cpp
@@ -204,7 +204,7 @@ namespace vcpkg::Install
{
// The VS2015 standard library requires comparison operators of T and U
// to also support comparison of T and T, and of U and U, due to debug checks.
-#if _MSC_VER < 1910
+#if _MSC_VER <= 1910
bool operator()(const std::string& lhs, const std::string& rhs) { return lhs < rhs; }
bool operator()(const file_pack& lhs, const file_pack& rhs) { return lhs.first < rhs.first; }
#endif