From 164609d63a03f9a4d5aff7a339d62df179039354 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 12 Jul 2019 09:09:38 +0200 Subject: [PATCH] Fix range-based for loops in ArrayMem --- libsrc/core/array.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/core/array.hpp b/libsrc/core/array.hpp index 253a476c..0dbc463c 100644 --- a/libsrc/core/array.hpp +++ b/libsrc/core/array.hpp @@ -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; }