Skip to content

Commit

Permalink
Update thrust/thrust/detail/contiguous_storage.h
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Schellenberger Costa <miscco@nvidia.com>
  • Loading branch information
bernhardmgruber and miscco committed Dec 5, 2024
1 parent 273985f commit 84847d9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions thrust/thrust/detail/contiguous_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,11 @@ class contiguous_storage
{
swap(m_allocator, x.m_allocator);
}
else
else _CCCL_IF_CONSTEXPR (!allocator_traits<Alloc>::is_always_equal::value)
{
_CCCL_IF_CONSTEXPR (!allocator_traits<Alloc>::is_always_equal::value)
{
NV_IF_TARGET(NV_IS_DEVICE, (assert(m_allocator == other);), (if (m_allocator != x.m_allocator) {
throw allocator_mismatch_on_swap();
}));
}
NV_IF_TARGET(NV_IS_DEVICE, (assert(m_allocator == other);), (if (m_allocator != x.m_allocator) {
throw allocator_mismatch_on_swap();
}));
}
}

Expand Down

0 comments on commit 84847d9

Please sign in to comment.