X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e3a1cf8d29cef5eaf730b485da389cff9319fa56..b7b9fb781045188e65beb5c1dfc391a2d21e5472:/include/simgrid/Exception.hpp diff --git a/include/simgrid/Exception.hpp b/include/simgrid/Exception.hpp index 0f3a5e3a6d..08ccf09fa3 100644 --- a/include/simgrid/Exception.hpp +++ b/include/simgrid/Exception.hpp @@ -197,7 +197,7 @@ public: const char* what() const noexcept { return msg_.c_str(); } static void do_throw(); - static bool try_n_catch(std::function try_block); + static bool try_n_catch(const std::function& try_block); private: std::string msg_ = std::string("Actor killed.");