mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40: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
|
||||
{
|
||||
allocsize = S;
|
||||
for (size_t i = 0; i < S; i++)
|
||||
for (auto i : ngcore::Range(size))
|
||||
mem[i] = a2.mem[i];
|
||||
}
|
||||
}
|
||||
@ -1118,7 +1118,7 @@ namespace ngcore
|
||||
|
||||
if (mem_to_delete==nullptr)
|
||||
{
|
||||
for (auto i : Range(size))
|
||||
for (auto i : ngcore::Range(size))
|
||||
mem[i] = std::move(a2.mem[i]);
|
||||
data = mem;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user