X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/325b135f0ee33c6c0242a14e2f58a54fb571b032..431ac6bd7924ab99473c9a621a25ab0c555c3e60:/main.cpp?ds=inline diff --git a/main.cpp b/main.cpp index a40bb9f..a4e9fdb 100644 --- a/main.cpp +++ b/main.cpp @@ -30,9 +30,11 @@ enum { #include "loba_least_loaded.h" int simulation_main(int argc, char* argv[]) { - // process proc(argc, argv); - loba_least_loaded proc(argc, argv); - return proc.run(); + int result; + process* proc = new loba_least_loaded(argc, argv); + result = proc->run(); + delete proc; + return result; } int main(int argc, char* argv[])