Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mc_api::get_automaton_state() defined. It is called in LivenessChecker::run()
[simgrid.git] / src / simgrid / util.hpp
index 2d28f9dbd149cc1b4b874d82e558eb35ca16c39d..d022134997a9ffcdfcbabd548ce37be4cf36c831 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2019. 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<typename C, typename K>
 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