mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 21:30: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);
|
RangeCheck (i+1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
data[i] = data[size-1];
|
data[i] = std::move(data[size-1]);
|
||||||
size--;
|
size--;
|
||||||
// DeleteElement (i+1);
|
// DeleteElement (i+1);
|
||||||
}
|
}
|
||||||
@ -342,7 +342,7 @@ namespace netgen
|
|||||||
RangeCheck (i);
|
RangeCheck (i);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
data[i-1] = data[size-1];
|
data[i-1] = std::move(data[size-1]);
|
||||||
size--;
|
size--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user