// wait for the completion of all activities
while (not pending_execs.empty()) {
- int changed_pos = simgrid::s4u::Exec::wait_any_for(&pending_execs, -1);
+ ssize_t changed_pos = simgrid::s4u::Exec::wait_any_for(pending_execs, -1);
XBT_INFO("Exec '%s' is complete", pending_execs[changed_pos]->get_cname());
pending_execs.erase(pending_execs.begin() + changed_pos);
}
e.run();
- XBT_INFO("Simulation time %g", e.get_clock());
+ XBT_INFO("Simulation time %g", simgrid::s4u::Engine::get_clock());
return 0;
}