fix size of me in mt swap in array move constructor

This commit is contained in:
Christopher Lackner 2024-08-27 18:33:36 +02:00
parent 2e3264ec69
commit 334c3fe702

View File

@ -733,7 +733,7 @@ namespace ngcore
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;
data = a2.data;