X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/af4023f2adc7976a736077c23829d217e7b89637..8e5684cc6c1d3bb451433394ddc4a64831f0e7f2:/src/surf/storage_n11.cpp diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index f016c1e5aa..130879dfa4 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -5,8 +5,9 @@ #include "storage_n11.hpp" #include "simgrid/s4u/Engine.hpp" +#include "src/kernel/lmm/maxmin.hpp" #include "src/kernel/routing/NetPoint.hpp" -#include "surf/maxmin.hpp" +#include "xbt/utility.hpp" #include /*ceil*/ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_storage); @@ -143,7 +144,7 @@ int StorageN11Action::unref() refcount_--; if (not refcount_) { if (action_hook.is_linked()) - stateSet_->erase(stateSet_->iterator_to(*this)); + simgrid::xbt::intrusive_erase(*stateSet_, *this); if (getVariable()) getModel()->getMaxminSystem()->variable_free(getVariable()); xbt_free(getCategory());