diff --git a/libsrc/general/array.hpp b/libsrc/general/array.hpp index d6126e4b..d288b7d1 100644 --- a/libsrc/general/array.hpp +++ b/libsrc/general/array.hpp @@ -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--; }