Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use std::vector.
[simgrid.git] / src / s4u / s4u_Storage.cpp
index 6ecf463..0727b79 100644 (file)
@@ -7,13 +7,13 @@
 #include "simgrid/s4u/Host.hpp"
 #include "simgrid/s4u/Io.hpp"
 #include "simgrid/s4u/Storage.hpp"
+#include "simgrid/simix.hpp"
 #include "simgrid/storage.h"
 #include "src/surf/StorageImpl.hpp"
 
 namespace simgrid {
-namespace xbt {
-template class Extendable<s4u::Storage>;
-} // namespace xbt
+
+template class xbt::Extendable<s4u::Storage>;
 
 namespace s4u {
 
@@ -38,7 +38,7 @@ Storage* Storage::by_name_or_null(const std::string& name)
 
 const char* Storage::get_type() const
 {
-  return pimpl_->typeId_.c_str();
+  return pimpl_->get_type();
 }
 
 const std::unordered_map<std::string, std::string>* Storage::get_properties() const