Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix compilation
[simgrid.git] / include / simgrid / s4u / engine.hpp
index ecd7f7d..bee4afa 100644 (file)
@@ -52,14 +52,14 @@ public:
   
   /** @brief Retrieve the engine singleton */
   static s4u::Engine *instance();
-private:
-  static s4u::Engine *instance_;
 
-public:
   /** @brief Retrieve the root AS, containing all others */
   simgrid::s4u::As *rootAs();
   /** @brief Retrieve the AS of the given name (or nullptr if not found) */
   simgrid::s4u::As *asByNameOrNull(const char *name);
+
+private:
+  static s4u::Engine *instance_;
 };
 }} // namespace simgrid::s4u