-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try harder to unwrap nested
thrust::tuple_of_iterator_references
(#…
…1469) * Ensure that we play nicely with std::iterators We were defining our own set of iterator categories That meant that an interator that is a `std::random_access_iterator` would not be a `cuda::std::random_access_iterator` To ensure that we are playing nicely with iterators that use `std::` iterator categories just pull in the standard ones. Fixes [BUG]: cuda::std::iterator_traits does not expose proper member types in old C++ dialects #1509 * Ensure that we provide our own `std::contiguous_iterator_tag` if needed * Disable MSVC warning * Try to appease MSVC2017 * Try harder to unwrap nested `thrust::tuple_of_iterator_references` We tried to simply unpack the `tuple_of_iterator_references`, however, if it contained nested `tuple_of_iterator_references` then that would break down. Instead recursively apply the unwrapping when possible * Make `tuple` constructible from `tuple_of_iterator_references`
- Loading branch information
Showing
3 changed files
with
221 additions
and
101 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.