Commit 28322b68 authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Fix move function of blc_array

parent 228f9dbf
......@@ -69,11 +69,14 @@ blc_array::blc_array(blc_array const &array):blc_mem(array), type(array.type), f
blc_array::blc_array(blc_array &&array):blc_mem(array){
dims=array.dims;
array.dims=nullptr;
array.dims_nb=0;
}
blc_array& blc_array::operator=(blc_array const &other){
if (this==&other) return *this;
blc_mem::operator=(other);
type=other.type;
format=other.format;
total_length=other.total_length;
......
Supports Markdown
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