Skip to content

Commit

Permalink
Fix forgot to return this
Browse files Browse the repository at this point in the history
  • Loading branch information
achirkin committed Nov 1, 2024
1 parent e0068cd commit 1c44220
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cpp/include/raft/core/pinned_container_policy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ struct pinned_container {
}

pinned_container(pinned_container&& other) { std::swap(this->data_, other.data_); }
pinned_container& operator=(pinned_container&& other) { std::swap(this->data_, other.data_); }
pinned_container& operator=(pinned_container&& other)
{
std::swap(this->data_, other.data_);
return *this;
}
pinned_container(pinned_container const&) = delete; // Copying disallowed: one array one owner
pinned_container& operator=(pinned_container const&) = delete;

Expand Down

0 comments on commit 1c44220

Please sign in to comment.