Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "cast once for all at surf level and not in the APIs"
[simgrid.git] / src / s4u / s4u_storage.cpp
index 952ec8d..e816d0d 100644 (file)
@@ -88,7 +88,8 @@ void Storage::setProperty(const char* key, char* value)
 
 std::map<std::string, sg_size_t*>* Storage::content()
 {
-  return simgrid::simix::kernelImmediate([this] { return surf_storage_resource_priv(this->pimpl_)->getContent(); });
+  return simgrid::simix::kernelImmediate(
+      [this] { return static_cast<simgrid::surf::Storage*>(surf_storage_resource_priv(this->pimpl_))->getContent(); });
 }
 
 std::unordered_map<std::string, Storage*>* Storage::allStorages()