Merge branch 'move_in_delete_element_array' into 'master'

use std::move in delete element of array

See merge request !46
This commit is contained in:
Joachim Schöberl 2017-05-11 10:55:55 +02:00
commit 7c8631cf2e

View File

@ -329,7 +329,7 @@ namespace netgen
RangeCheck (i+1);
#endif
data[i] = data[size-1];
data[i] = std::move(data[size-1]);
size--;
// DeleteElement (i+1);
}
@ -342,7 +342,7 @@ namespace netgen
RangeCheck (i);
#endif
data[i-1] = data[size-1];
data[i-1] = std::move(data[size-1]);
size--;
}