From 1b76f5e8119b8fdb991ad0dd2b47c31fc260f12e Mon Sep 17 00:00:00 2001 From: SUTER Frederic Date: Fri, 28 Jan 2022 11:07:42 +0100 Subject: [PATCH] Users should not set the netzone_root themselves. Make it protected --- include/simgrid/s4u/Engine.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/simgrid/s4u/Engine.hpp b/include/simgrid/s4u/Engine.hpp index f989f396f5..6b1151f13b 100644 --- a/include/simgrid/s4u/Engine.hpp +++ b/include/simgrid/s4u/Engine.hpp @@ -111,6 +111,7 @@ protected: void link_unregister(const std::string& name); void netpoint_register(simgrid::kernel::routing::NetPoint* card); void netpoint_unregister(simgrid::kernel::routing::NetPoint* card); + void set_netzone_root(const NetZone* netzone); #endif /*DOXYGEN*/ public: @@ -154,7 +155,6 @@ public: kernel::routing::NetPoint* netpoint_by_name(const std::string& name) const; NetZone* get_netzone_root() const; - void set_netzone_root(const NetZone* netzone); NetZone* netzone_by_name_or_null(const std::string& name) const; -- 2.20.1