From 2f1e9cc3bd45b814c3a0f70aae6686e19fa6227c Mon Sep 17 00:00:00 2001 From: Isaac Deutsch <55233695+nvibd@users.noreply.github.com> Date: Tue, 8 Sep 2020 16:52:33 +0200 Subject: [PATCH] Fix ambiguous overload when using partition with STL containers --- thrust/system/detail/sequential/partition.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/thrust/system/detail/sequential/partition.h b/thrust/system/detail/sequential/partition.h index 66996d637..4604fecfa 100644 --- a/thrust/system/detail/sequential/partition.h +++ b/thrust/system/detail/sequential/partition.h @@ -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; } } @@ -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; }