mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
use std::move in delete element of array
This commit is contained in:
parent
240a132078
commit
b87e76306f
@ -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--;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user