Merge pull request #8638 from sryze/vs2017-build-fix

Fix compile error in Visual Studio 2017 15.1
This commit is contained in:
Victor Romero 2019-10-17 22:09:18 -07:00 committed by GitHub
commit 69a5c70f8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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