- long number_of_tasks = xbt_str_parse_int(args[0].c_str(), "Invalid amount of tasks: %s");
- double task_comp_size = xbt_str_parse_double(args[1].c_str(), "Invalid computational size: %s");
- double task_comm_size = xbt_str_parse_double(args[2].c_str(), "Invalid communication size: %s");
- long receivers_count = xbt_str_parse_int(args[3].c_str(), "Invalid amount of receivers: %s");
- int diff_com = xbt_str_parse_int(args[4].c_str(), "Invalid value for diff_comm: %s");
+ number_of_tasks = std::stol(args[0]);
+ double task_comp_size = std::stod(args[1]);
+ double task_comm_size = std::stod(args[2]);
+ receivers_count = std::stol(args[3]);
+ diff_com = std::stoi(args[4]);