From 334c3fe702d241adbf6da3674554f0578378d50a Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Tue, 27 Aug 2024 18:33:36 +0200 Subject: [PATCH] fix size of me in mt swap in array move constructor --- libsrc/core/array.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/core/array.hpp b/libsrc/core/array.hpp index 89d1c915..bb03166a 100644 --- a/libsrc/core/array.hpp +++ b/libsrc/core/array.hpp @@ -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;