Skip to content

Commit

Permalink
Fixes #703: Missed changes to the swap() method required by the int…
Browse files Browse the repository at this point in the history
…roduction of the deleter

... and using ADL for `swap()` as is idiomatic, although it's not strictly necessary.
  • Loading branch information
eyalroz committed Jan 19, 2025
1 parent 9acb87d commit 7e5abd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cuda/api/detail/unique_span.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ class unique_span : public ::cuda::span<T> {
/// Exchange the pointer and deleter with another object.
void swap(unique_span& other) noexcept
{
::std::swap<span_type>(*this, other);
using ::std::swap;
swap<span_type>(*this, other);
swap(deleter_, other.deleter_);
}
/**
* Release ownership of the stored span
Expand Down

0 comments on commit 7e5abd1

Please sign in to comment.