From b87e76306f91f4faa1e1eac2174770896311d6ff Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Thu, 11 May 2017 10:25:29 +0200 Subject: [PATCH] use std::move in delete element of array --- libsrc/general/array.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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--; }