Skip to content

Commit

Permalink
fix1
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Nov 29, 2024
1 parent 510df61 commit e9cb9ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions thrust/thrust/detail/contiguous_storage.inl
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,11 @@ _CCCL_HOST_DEVICE void contiguous_storage<T, Alloc>::deallocate() noexcept
template <typename T, typename Alloc>
_CCCL_HOST_DEVICE void contiguous_storage<T, Alloc>::swap(contiguous_storage& x)
{
using ::cuda::std::swap;
swap(m_begin, x.m_begin);
// FIXME(bgruber): this should use ADL-two-step swap, but this creates an ambiguity with std::swap until
// https://github.com/NVIDIA/cccl/issues/2984 is resolved.
// using ::cuda::std::swap;
// swap(m_begin, x.m_begin);
::cuda::std::swap(m_begin, x.m_begin);
swap(m_size, x.m_size);

// FIXME(bgruber): swap_allocators already swaps m_allocator, so we are swapping twice here !!
Expand Down

0 comments on commit e9cb9ac

Please sign in to comment.