- number_of_tasks = xbt_str_parse_int(args[1].c_str(), "Invalid amount of tasks: %s"); /* - Number of tasks */
- comp_size = xbt_str_parse_double(args[2].c_str(), "Invalid computational size: %s"); /* - Task compute cost */
- comm_size = xbt_str_parse_double(args[3].c_str(), "Invalid communication size: %s"); /* - Communication size */
- workers_count = xbt_str_parse_int(args[4 ].c_str(), "Invalid amount of workers: %s"); /* - Number of workers */
+ number_of_tasks = std::stol(args[1]);
+ comp_size = std::stod(args[2]);
+ comm_size = std::stod(args[3]);
+ workers_count = std::stol(args[4]);