Commit ec6f1d35 authored by Quentin Khan's avatar Quentin Khan
Browse files

Add move constructor/operator to starpu_data_handles manager

parent 6be4be63
......@@ -163,6 +163,21 @@ private:
node_data_handles(const node_data_handles&) = delete;
node_data_handles& operator=(const node_data_handles&) = delete;
node_data_handles(node_data_handles&& other) {
*this = std::move(other);
}
node_data_handles& operator=(node_data_handles&& other) {
this->symbolic = other.symbolic;
this->multipole = other.multipole;
this->local_exp = other.local_exp;
this->particles = other.particles;
other.symbolic = starpu_data_handle_t{};
other.multipole = starpu_data_handle_t{};
other.local_exp = starpu_data_handle_t{};
other.particles = starpu_data_handle_t{};
}
starpu_data_handle_t symbolic;
starpu_data_handle_t multipole;
starpu_data_handle_t local_exp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment