diff options
| author | nicole mazzuca <mazzucan@outlook.com> | 2019-08-12 14:02:59 -0700 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-08-12 14:02:59 -0700 |
| commit | 875648e10b2e5b5dfba6be75997171f10cb868ed (patch) | |
| tree | 30b8b8a5f3c12a758c8259f3c92938e7abe0f712 /toolsrc/include | |
| parent | da61a933fc325d99eecc1b39cd29dbe1584e1bf9 (diff) | |
| download | vcpkg-875648e10b2e5b5dfba6be75997171f10cb868ed.tar.gz vcpkg-875648e10b2e5b5dfba6be75997171f10cb868ed.zip | |
[vcpkg] Fix the build on VS2015 debug (#7637)
The VS2015 standard library requires, in debug mode, a comparison
operator on `T × U` and `U × T` to also be a comparison operator on
`T × T` and on `U × U`, and so in
vcpkg::Install::install_package::intersection_compare, I've added two
new `operator()` overloads which take those respectively, on VS2015.
Also, `[nodiscard]` was added to somewhere in `vcpkg/base/strings.h`,
which gives a warning in VS2015 -- thus, I added the `vcpkg/pragmas.h`
include, since that fixes the warning.
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/base/strings.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/base/strings.h b/toolsrc/include/vcpkg/base/strings.h index dde4e9693..a147a8373 100644 --- a/toolsrc/include/vcpkg/base/strings.h +++ b/toolsrc/include/vcpkg/base/strings.h @@ -1,10 +1,12 @@ #pragma once + #include <vcpkg/base/cstringview.h> #include <vcpkg/base/optional.h> #include <vcpkg/base/stringliteral.h> #include <vcpkg/base/stringview.h> #include <vcpkg/base/view.h> +#include <vcpkg/pragmas.h> #include <vector> |
