X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/88916d6f88d88c7d1652c6a950acd014a7166beb..c04b15f5346d042218b4fb8357cace04585e067b:/include/xbt/functional.hpp diff --git a/include/xbt/functional.hpp b/include/xbt/functional.hpp index 7596ef6f1e..2c7c87d231 100644 --- a/include/xbt/functional.hpp +++ b/include/xbt/functional.hpp @@ -43,7 +43,7 @@ public: std::vector args = *args_; std::unique_ptr argv(new char*[argc + 1]); for (int i = 0; i != argc; ++i) - argv[i] = args[i].empty() ? const_cast(""): &args[i].front(); + argv[i] = args[i].empty() ? '\0' : &args[i].front(); argv[argc] = nullptr; code_(argc, argv.get()); }