Fix range-based for loops in ArrayMem

This commit is contained in:
Matthias Hochsteger 2019-07-12 09:09:38 +02:00
parent 56915fc89a
commit 164609d63a

View File

@ -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;
} }