- std::stringstream mailboxname, mailboxname_small;
- process_ = actor;
- mailboxname << std::string("SMPI-") << process_->getPid();
- mailboxname_small << std::string("small-") << process_->getPid();
- mailbox_ = simgrid::s4u::Mailbox::byName(mailboxname.str());
- mailbox_small_ = simgrid::s4u::Mailbox::byName(mailboxname_small.str());
- mailboxes_mutex_ = xbt_mutex_init();
- timer_ = xbt_os_timer_new();
- state_ = SMPI_UNINITIALIZED;
+ mailbox_ = simgrid::s4u::Mailbox::byName("SMPI-" + std::to_string(process_->get_pid()));
+ mailbox_small_ = simgrid::s4u::Mailbox::byName("small-" + std::to_string(process_->get_pid()));
+ mailboxes_mutex_ = xbt_mutex_init();
+ timer_ = xbt_os_timer_new();
+ state_ = SMPI_UNINITIALIZED;