From 0ca676a95eced0ea61591f7931b126acb00d7a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20M=C3=BCller?= Date: Mon, 29 Nov 2021 14:53:35 +0100 Subject: [PATCH] Fix warning: loop variable ... creates a copy from type --- src/spineml/simulator/inputValue.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spineml/simulator/inputValue.cc b/src/spineml/simulator/inputValue.cc index 8f513612c1..3339e10875 100644 --- a/src/spineml/simulator/inputValue.cc +++ b/src/spineml/simulator/inputValue.cc @@ -226,7 +226,7 @@ SpineMLSimulator::InputValue::TimeVaryingArray::TimeVaryingArray(double dt, unsi } } - for(const auto t : m_TimeArrays) { + for(const auto &t : m_TimeArrays) { LOGD_SPINEML << "\tTimestep:" << t.first << "," << t.second.size() << " values"; } }