Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix initialization order.
[simgrid.git] / src / surf / storage.hpp
index 4692baf..91afd10 100644 (file)
@@ -103,7 +103,7 @@ class StorageAction : virtual public Action {
 public:
   StorageAction(){};
   StorageAction(ModelPtr /*model*/, double /*cost*/, bool /*failed*/, StoragePtr storage, e_surf_action_storage_type_t type)
 public:
   StorageAction(){};
   StorageAction(ModelPtr /*model*/, double /*cost*/, bool /*failed*/, StoragePtr storage, e_surf_action_storage_type_t type)
-   : p_storage(storage), m_type(type) {};
+    : m_type(type), p_storage(storage) {};