Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Fix ambiguous overload when using partition with STL containers #1272

Merged
merged 1 commit into from
Sep 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions thrust/system/detail/sequential/partition.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ __host__ __device__
{
if(wrapped_pred(*next))
{
iter_swap(first, next);
// Fully qualify name to disambiguate overloads found via ADL.
::thrust::system::detail::sequential::iter_swap(first, next);
++first;
}
}
Expand Down Expand Up @@ -143,7 +144,8 @@ __host__ __device__
{
if(wrapped_pred(*stencil_first))
{
iter_swap(first, next);
// Fully qualify name to disambiguate overloads found via ADL.
::thrust::system::detail::sequential::iter_swap(first, next);
++first;
}

Expand Down