From 5189e2d31ba9670f761280b7e54e000afcc4c506 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; }