X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/01565540f1e39584fb5714d4f4c361ff518917f1..69f8eb4aea98b46c7df3ca9a44bf46fc1ba2348b:/include/xbt/functional.hpp diff --git a/include/xbt/functional.hpp b/include/xbt/functional.hpp index e84506fb9c..b2d10432c1 100644 --- a/include/xbt/functional.hpp +++ b/include/xbt/functional.hpp @@ -40,7 +40,7 @@ public: std::vector args = *args_; if (not args.empty()) { char noarg[] = {'\0'}; - std::unique_ptr argv(new char*[argc + 1]); + auto argv = std::make_unique(argc + 1); for (int i = 0; i != argc; ++i) argv[i] = args[i].empty() ? noarg : &args[i].front(); argv[argc] = nullptr;