X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/539af86e870c62ba4a28b5b4e0cedd252881dfb0..e080adacaf1ba847ad467f5b8d21da385636ed3c:/src/simdag/sd_global.cpp diff --git a/src/simdag/sd_global.cpp b/src/simdag/sd_global.cpp index 22d4faf9be..e8ba4ed07d 100644 --- a/src/simdag/sd_global.cpp +++ b/src/simdag/sd_global.cpp @@ -10,6 +10,8 @@ #include "simgrid/sg_config.hpp" #include "src/surf/surf_interface.hpp" +#include + XBT_LOG_NEW_CATEGORY(sd, "Logging specific to SimDag"); XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sd_kernel, sd, "Logging specific to SimDag (kernel)"); @@ -124,7 +126,7 @@ std::set* simulate(double how_long){ * @return the equivalent as a readable string */ const char *__get_state_name(e_SD_task_state_t state){ - static std::array state_names{ + static constexpr std::array state_names{ {"not scheduled", "schedulable", "scheduled", "runnable", "running", "done", "failed"}}; return state_names.at(static_cast(log2(static_cast(state)))); }