Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Die on unwanted function calls.
[simgrid.git] / include / simgrid / kernel / routing / EmptyZone.hpp
index c1eb7f7..b1f820c 100644 (file)
@@ -7,6 +7,7 @@
 #define SURF_ROUTING_NONE_HPP_
 
 #include <simgrid/kernel/routing/NetZoneImpl.hpp>
+#include <xbt/asserts.h>
 
 namespace simgrid {
 namespace kernel {
@@ -25,7 +26,7 @@ public:
 
   void get_local_route(const NetPoint* src, const NetPoint* dst, Route* into, double* latency) override
   {
-    /* There can't be route in an Empty zone */
+    xbt_die("There can't be route in an Empty zone");
   }
 
   void get_graph(const s_xbt_graph_t* graph, std::map<std::string, xbt_node_t, std::less<>>* /*nodes*/,