simgrid::s4u::Mailbox* mailbox = simgrid::s4u::Mailbox::by_name(mailbox_name);
while (true) { // Master forcefully kills the workers by the end of the simulation
- double* msg = static_cast<double*>(mailbox->get());
+ double* msg = mailbox->get<double>();
double compute_cost = *msg;
delete msg;