X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/76d4849864c227687e17bdd93c5b1338e9b4cb50..d7eafaa8d4c2e62e38309af508b04888fbbd1270:/include/simgrid/s4u/Link.hpp diff --git a/include/simgrid/s4u/Link.hpp b/include/simgrid/s4u/Link.hpp index 5924c0f893..5939fe35e9 100644 --- a/include/simgrid/s4u/Link.hpp +++ b/include/simgrid/s4u/Link.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2022. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -165,7 +165,7 @@ public: on_communication_state_change.connect(cb); } /** @brief Add a callback fired when a Link is destroyed */ - static void on_destruction_cb(std::function cb) { on_destruction.connect(cb); } + static void on_destruction_cb(const std::function& cb) { on_destruction.connect(cb); } }; /**