Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix java build
[simgrid.git] / src / surf / network_cm02.cpp
index d606b2a30b35580fb47287339f9107da2162f54d..c99333ff4ec1e1487494d15a7da9e8f200ab528e 100644 (file)
@@ -90,7 +90,7 @@ NetworkCm02Model::NetworkCm02Model(kernel::lmm::System* (*make_new_lmm_system)(b
                                             s4u::Link::SharingPolicy::FATPIPE);
 }
 
-LinkImpl* NetworkCm02Model::create_link(const std::string& name, std::vector<double> bandwidths, double latency,
+LinkImpl* NetworkCm02Model::create_link(const std::string& name, const std::vector<double>& bandwidths, double latency,
                                         s4u::Link::SharingPolicy policy)
 {
   if (policy == s4u::Link::SharingPolicy::WIFI) {