Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add some includes to please GCC 10
[simgrid.git] / src / surf / network_ns3.cpp
index c6e2ccef0385e9de3f3f9b32c00feb09f5072093..211586febda9f03dfd167c3c922b59fb607ea58a 100644 (file)
@@ -173,7 +173,7 @@ NetworkNS3Model::~NetworkNS3Model() {
   IPV4addr.clear();
 }
 
-LinkImpl* NetworkNS3Model::create_link(const std::string& name, std::vector<double> bandwidths, double latency,
+LinkImpl* NetworkNS3Model::create_link(const std::string& name, const std::vector<double>& bandwidths, double latency,
                                        s4u::Link::SharingPolicy policy)
 {
   xbt_assert(bandwidths.size() == 1, "Non WIFI links must use only 1 bandwidth.");