Skip to content

Conversation

strega-nil
Copy link
Contributor

@strega-nil strega-nil commented Aug 10, 2019

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.

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.
@strega-nil strega-nil self-assigned this Aug 10, 2019
@strega-nil
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@strega-nil strega-nil marked this pull request as ready for review August 10, 2019 22:12
@vicroms vicroms merged commit 875648e into microsoft:master Aug 12, 2019
@strega-nil strega-nil deleted the vs2015-debug-fixes branch August 12, 2019 21:05
strega-nil added a commit to strega-nil/vcpkg that referenced this pull request May 5, 2021
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants