X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/de32c0ad080a06621f84d9274bf0a3f020c38207..8c4d4c169bacafe232f5af91236be37fcf45de35:/src/s4u/s4u_Host.cpp diff --git a/src/s4u/s4u_Host.cpp b/src/s4u/s4u_Host.cpp index 71710c4e0f..c2e01693f4 100644 --- a/src/s4u/s4u_Host.cpp +++ b/src/s4u/s4u_Host.cpp @@ -154,7 +154,7 @@ void Host::route_to(Host* dest, std::vector& links, double* latency) std::vector linkImpls; this->route_to(dest, linkImpls, latency); for (kernel::resource::LinkImpl* const& l : linkImpls) - links.push_back(&l->piface_); + links.push_back(l->get_iface()); } /** @brief Just like Host::routeTo, but filling an array of link implementations */ @@ -311,7 +311,7 @@ std::unordered_map const& Host::get_mounted_storages() if (mounts_ == nullptr) { mounts_ = new std::unordered_map(); for (auto const& m : this->pimpl_->storage_) { - mounts_->insert({m.first, &m.second->piface_}); + mounts_->insert({m.first, m.second->get_iface()}); } } return *mounts_;