X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5928d094a2da20070ee195a640b34b5a526a1575..7ec4bfe63855f02819ad397d3b29babf4421ea00:/include/simgrid/s4u/Comm.hpp diff --git a/include/simgrid/s4u/Comm.hpp b/include/simgrid/s4u/Comm.hpp index 6806ed9530..bee49b304a 100644 --- a/include/simgrid/s4u/Comm.hpp +++ b/include/simgrid/s4u/Comm.hpp @@ -108,9 +108,9 @@ public: /** Set the source and destination of communications that bypass the mailbox mechanism */ CommPtr set_source(Host* from); - Host* get_source() { return from_; } + Host* get_source() const { return from_; } CommPtr set_destination(Host* to); - Host* get_destination() { return to_; } + Host* get_destination() const { return to_; } /** Sets the maximal communication rate (in byte/sec). Must be done before start */ CommPtr set_rate(double rate);