Skip to content

Commit

Permalink
stackable_logical_data::impl is movable but not copyable
Browse files Browse the repository at this point in the history
  • Loading branch information
caugonnet committed Jan 15, 2025
1 parent 8902d6f commit 7c72f4b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cudax/include/cuda/experimental/__stf/utility/stackable_ctx.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,16 @@ class stackable_logical_data
s.push_back(ld);
}

~impl() = default;

// Delete copy constructor and copy assignment operator
impl(const impl&) = delete;
impl& operator=(const impl&) = delete;

// Define move constructor and move assignment operator
impl(impl&&) noexcept = default;
impl& operator=(impl&&) noexcept = default;

const auto& get_ld() const
{
check_level_mismatch();
Expand Down

0 comments on commit 7c72f4b

Please sign in to comment.