mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00:33 +05:00
Fix range-based for loops in ArrayMem
This commit is contained in:
parent
56915fc89a
commit
164609d63a
@ -1090,7 +1090,7 @@ namespace ngcore
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
allocsize = S;
|
allocsize = S;
|
||||||
for (size_t i = 0; i < S; i++)
|
for (auto i : ngcore::Range(size))
|
||||||
mem[i] = a2.mem[i];
|
mem[i] = a2.mem[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1118,7 +1118,7 @@ namespace ngcore
|
|||||||
|
|
||||||
if (mem_to_delete==nullptr)
|
if (mem_to_delete==nullptr)
|
||||||
{
|
{
|
||||||
for (auto i : Range(size))
|
for (auto i : ngcore::Range(size))
|
||||||
mem[i] = std::move(a2.mem[i]);
|
mem[i] = std::move(a2.mem[i]);
|
||||||
data = mem;
|
data = mem;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user