X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3599a35799e2dc9f691f87cbd04c2f95aad7edb8..ee3aa92a3bb4209e12bb7f8b628cb47e68cae081:/src/mc/api/strategy/MaxMatchComm.hpp diff --git a/src/mc/api/strategy/MaxMatchComm.hpp b/src/mc/api/strategy/MaxMatchComm.hpp index 7ec0af9361..ec279d0245 100644 --- a/src/mc/api/strategy/MaxMatchComm.hpp +++ b/src/mc/api/strategy/MaxMatchComm.hpp @@ -25,7 +25,7 @@ class MaxMatchComm : public Strategy { public: void copy_from(const Strategy* strategy) override { - const MaxMatchComm* cast_strategy = dynamic_cast(strategy); + const auto* cast_strategy = dynamic_cast(strategy); xbt_assert(cast_strategy != nullptr); for (auto& [id, val] : cast_strategy->mailbox_) mailbox_[id] = val;