X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84637d5a56f373e75eb6619d1afb54b7da3f5e36..84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6:/examples/deprecated/simdag/test/sd_test.cpp diff --git a/examples/deprecated/simdag/test/sd_test.cpp b/examples/deprecated/simdag/test/sd_test.cpp index 59fead5068..a2727aebf4 100644 --- a/examples/deprecated/simdag/test/sd_test.cpp +++ b/examples/deprecated/simdag/test/sd_test.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2006-2020. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -119,7 +119,7 @@ int main(int argc, char **argv) SD_task_schedule(taskC, 2, host_list, computation_amount, communication_amount, -1); SD_task_schedule(taskD, 2, host_list, computation_amount, communication_amount, -1); - std::set *changed_tasks = simgrid::sd::simulate(-1.0); + const std::set* changed_tasks = simgrid::sd::simulate(-1.0); for (auto const& task : *changed_tasks) { XBT_INFO("Task '%s' start time: %f, finish time: %f", SD_task_get_name(task), SD_task_get_start_time(task), SD_task_get_finish_time(task));