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

Commit

Permalink
Fix ambiguous overload when using partition with STL containers
Browse files Browse the repository at this point in the history
  • Loading branch information
nvibd authored and alliepiper committed Sep 21, 2020
1 parent 7fe07f4 commit 2f1e9cc
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 2f1e9cc

Please sign in to comment.