Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
prefer the stack to the heap (+ don't refill the host list if already full)
[simgrid.git] / include / simgrid / s4u / NetZone.hpp
index 38cfab2..c05a251 100644 (file)
@@ -40,7 +40,7 @@ protected:
 
   explicit NetZone(NetZone * father, const char* name);
   virtual ~NetZone();
-  std::vector<Host*>* hosts_ = new std::vector<Host*>();
+  std::vector<Host*> hosts_;
 
 public:
   /** @brief Seal your netzone once you're done adding content, and before routing stuff through it */