Mercurial > hg > orthanc-stone
changeset 966:10c83e30facd
merge
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 27 Aug 2019 15:19:37 +0200 |
parents | 1f9f604d2c34 (current diff) d358593820b8 (diff) |
children | e3234630df9c |
files | |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Loaders/LoaderCache.cpp Tue Aug 27 15:18:23 2019 +0200 +++ b/Framework/Loaders/LoaderCache.cpp Tue Aug 27 15:19:37 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++; } }