This repository was archived by the owner on Mar 21, 2024. It is now read-only.
Fix std::allocator traits#1518
Merged
gevtushenko merged 1 commit intoNVIDIA:mainfrom Sep 23, 2021
Merged
Conversation
Collaborator
Author
|
run tests |
8f17c03 to
926f092
Compare
gevtushenko
commented
Sep 8, 2021
926f092 to
b822b8d
Compare
Collaborator
Author
|
run tests |
Collaborator
|
LGTM, I tested this locally and it seems to work. Just run it through DVS and if it looks good, go ahead and merge it 👍 |
b822b8d to
c545f0a
Compare
c545f0a to
a9d907f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes the following issue.
SFINAE doesn't allow us to specialize code depending on the deprecation attribute. Therefore existing
allocator_traitsled to deprecated fields accesses. In this PR I explicitly specialized__THRUST_DEFINE_HAS_NESTED_TYPEforstd::allocatorin case of C++ >= 17.