X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/10728a913d95590a3d5f162ce6016ca3e3cd4e92..863d7ae03c294566165effc8a6eff7fed7cb3e9f:/src/surf/storage_n11.cpp diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index 340c601333..130879dfa4 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -7,6 +7,7 @@ #include "simgrid/s4u/Engine.hpp" #include "src/kernel/lmm/maxmin.hpp" #include "src/kernel/routing/NetPoint.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());