mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-14 07:00:34 +05:00
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:
commit
69f2ea5635
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user