Merge branch 'fix_mt_swap_in_array_move' into 'master'

fix size of me in mt swap in array move constructor

See merge request ngsolve/netgen!664
This commit is contained in:
Schöberl, Joachim 2024-08-27 19:03:43 +02:00
commit 69f2ea5635

View File

@ -733,7 +733,7 @@ namespace ngcore
NETGEN_INLINE Array (Array && a2) NETGEN_INLINE Array (Array && a2)
{ {
mt.Swap(sizeof(T) * allocsize, a2.mt, sizeof(T) * a2.allocsize); mt.Swap(0., a2.mt, sizeof(T) * a2.allocsize);
size = a2.size; size = a2.size;
data = a2.data; data = a2.data;