X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c6d6e5b87aed9c7080c981b11f91f2d0205623c3..6051369d9427154f912e8affc417f20a26a0eb95:/examples/cpp/dag-from-dot-simple/s4u-dag-from-dot-simple.cpp diff --git a/examples/cpp/dag-from-dot-simple/s4u-dag-from-dot-simple.cpp b/examples/cpp/dag-from-dot-simple/s4u-dag-from-dot-simple.cpp index a5532eb7f5..a6972b0915 100644 --- a/examples/cpp/dag-from-dot-simple/s4u-dag-from-dot-simple.cpp +++ b/examples/cpp/dag-from-dot-simple/s4u-dag-from-dot-simple.cpp @@ -26,8 +26,8 @@ int main(int argc, char* argv[]) for (const auto& a : dag) { if (auto* comm = dynamic_cast(a.get())) { - auto pred = dynamic_cast((*comm->get_dependencies().begin()).get()); - auto succ = dynamic_cast(comm->get_successors().front().get()); + const auto* pred = dynamic_cast((*comm->get_dependencies().begin()).get()); + const auto* succ = dynamic_cast(comm->get_successors().front().get()); comm->set_source(pred->get_host())->set_destination(succ->get_host()); } }