Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Const ref for catch.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 24 Apr 2022 16:39:24 +0000 (18:39 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 25 Apr 2022 11:00:38 +0000 (13:00 +0200)
src/surf/HostImpl.cpp

index de2ba8f..ad435f4 100644 (file)
@@ -45,7 +45,7 @@ HostImpl::~HostImpl()
 
       EngineImpl::get_instance()->display_all_actor_status();
       xbt_die("%s:%s", msg, actors.c_str());
-    } catch (std::bad_alloc& ba) {
+    } catch (const std::bad_alloc& ba) {
       xbt_die("%s (cannot print actor list: %s)", msg, ba.what());
     }
   }