Skip to content

Commit 2f1e9cc

Browse files
nvibdalliepiper
authored andcommitted
Fix ambiguous overload when using partition with STL containers
1 parent 7fe07f4 commit 2f1e9cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

thrust/system/detail/sequential/partition.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ __host__ __device__
9595
{
9696
if(wrapped_pred(*next))
9797
{
98-
iter_swap(first, next);
98+
// Fully qualify name to disambiguate overloads found via ADL.
99+
::thrust::system::detail::sequential::iter_swap(first, next);
99100
++first;
100101
}
101102
}
@@ -143,7 +144,8 @@ __host__ __device__
143144
{
144145
if(wrapped_pred(*stencil_first))
145146
{
146-
iter_swap(first, next);
147+
// Fully qualify name to disambiguate overloads found via ADL.
148+
::thrust::system::detail::sequential::iter_swap(first, next);
147149
++first;
148150
}
149151

0 commit comments

Comments
 (0)