X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3e7cc82ad6bd8082b4f9defe916a942a578c0b11..6d0a0282a8f54a7fdc062bfabfeca5bb05d31710:/src/surf/HostImpl.cpp diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index de2ba8fe06..ad435f4528 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -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()); } }