X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9cb40402d4b88cb4690592949dbae63147f92f32..42a3fc7bf956d263989efdd841e07ff0ebe4cbac:/src/surf/network_ns3.cpp?ds=sidebyside diff --git a/src/surf/network_ns3.cpp b/src/surf/network_ns3.cpp index 4a9c40e76e..80b5306ff3 100644 --- a/src/surf/network_ns3.cpp +++ b/src/surf/network_ns3.cpp @@ -446,13 +446,17 @@ void LinkNS3::apply_event(profile::Event*, double) { THROW_UNIMPLEMENTED; } -void LinkNS3::set_bandwidth_profile(profile::Profile*) + +LinkImpl* LinkNS3::set_bandwidth_profile(profile::Profile* profile) { - xbt_die("The ns-3 network model doesn't support bandwidth profiles"); + xbt_assert(profile == nullptr, "The ns-3 network model doesn't support bandwidth profiles"); + return this; } -void LinkNS3::set_latency_profile(profile::Profile*) + +LinkImpl* LinkNS3::set_latency_profile(profile::Profile* profile) { - xbt_die("The ns-3 network model doesn't support latency profiles"); + xbt_assert(profile == nullptr, "The ns-3 network model doesn't support latency profiles"); + return this; } LinkImpl* LinkNS3::set_latency(double latency)