X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f6b6ec5ae0cc5d28201720961c23277c4a72e152..5ed37babb2fa9097abe82df299c0aa259ed84d5a:/include/simgrid/s4u/NetZone.hpp?ds=sidebyside diff --git a/include/simgrid/s4u/NetZone.hpp b/include/simgrid/s4u/NetZone.hpp index fb0576f787..63a1c23b00 100644 --- a/include/simgrid/s4u/NetZone.hpp +++ b/include/simgrid/s4u/NetZone.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2016-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2016-2023. 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. */ @@ -155,12 +155,14 @@ public: /** @brief Seal this netzone configuration */ NetZone* seal(); - void set_latency_factor_cb(std::function& /*links*/, - const std::unordered_set& /*netzones*/)> const& cb); - void set_bandwidth_factor_cb(std::function& /*links*/, - const std::unordered_set& /*netzones*/)> const& cb); + void + set_latency_factor_cb(std::function& /*links*/, + const std::unordered_set& /*netzones*/)> const& cb) const; + void + set_bandwidth_factor_cb(std::function& /*links*/, + const std::unordered_set& /*netzones*/)> const& cb) const; }; // External constructors so that the types (and the types of their content) remain hidden