X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/15af6f9bf88ff4bfdd0b8e87039e666ee092fbfe..9df3c57540c57dd47465db521fe6a7f52739dd55:/src/simgrid/util.hpp diff --git a/src/simgrid/util.hpp b/src/simgrid/util.hpp index 03d81b8002..d022134997 100644 --- a/src/simgrid/util.hpp +++ b/src/simgrid/util.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2015. The SimGrid Team. +/* Copyright (c) 2015-2020. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -17,7 +17,7 @@ template inline XBT_PRIVATE typename C::mapped_type* find_map_ptr(C& c, K const& k) { - typename C::iterator i = c.find(k); + auto i = c.find(k); if (i == c.end()) return nullptr; else @@ -35,7 +35,7 @@ typename C::mapped_type const* find_map_ptr(C const& c, K const& k) return &i->second; } -} -} +} // namespace util +} // namespace simgrid #endif