From: Martin Quinson Date: Thu, 14 May 2020 18:16:13 +0000 (+0200) Subject: fix save src/dst X-Git-Tag: v3.26~596 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/91e5c0de1cc47b4316c6a23a6f2c697df0c838fe fix save src/dst --- diff --git a/src/surf/network_interface.hpp b/src/surf/network_interface.hpp index 7c6d824847..087dadf75c 100644 --- a/src/surf/network_interface.hpp +++ b/src/surf/network_interface.hpp @@ -200,8 +200,8 @@ public: double lat_current_ = {}; double sharing_penalty_ = {}; double rate_ = {}; - s4u::Host& get_src() { return src_; } - s4u::Host& get_dst() { return dst_; } + s4u::Host& get_src() const { return src_; } + s4u::Host& get_dst() const { return dst_; } }; } // namespace resource } // namespace kernel