changeset 963:d358593820b8

removal of C++11 iterator
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 27 Aug 2019 08:15:36 +0200
parents e70d75f199c5
children 10c83e30facd
files Framework/Loaders/LoaderCache.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Loaders/LoaderCache.cpp	Mon Aug 26 11:03:14 2019 +0200
+++ b/Framework/Loaders/LoaderCache.cpp	Tue Aug 27 08:15:36 2019 +0200
@@ -257,10 +257,10 @@
   {
     LOG(TRACE) << "Map \"" << name << "\" ref counts:";
     size_t i = 0;
-    for (const auto& it : myMap)
+    for (typename std::map<std::string, boost::shared_ptr<T> >::const_iterator 
+           it = myMap.begin(); it != myMap.end(); ++it)
     {
-      auto ptr = it.second;
-      LOG(TRACE) << "  element #" << i << ": ref count = " << it.second.use_count();
+      LOG(TRACE) << "  element #" << i << ": ref count = " << it->second.use_count();
       i++;
     }
   }