Also fix sonar issue S5018: Move and swap operations should be "noexcept"
XBT_DEBUG("Restarting actor %s on %s", get_cname(), host_->get_cname());
// retrieve the arguments of the old actor
- ProcessArg arg = ProcessArg(host_, this);
+ ProcessArg arg(host_, this);
// kill the old actor
context::Context::self()->get_actor()->kill(this);
/* list of functions executed when the process dies */
const std::shared_ptr<std::vector<std::function<void(bool)>>> on_exit;
- ProcessArg() = delete;
+ ProcessArg() = delete;
+ ProcessArg(const ProcessArg&) = delete;
+ ProcessArg& operator=(const ProcessArg&) = delete;
explicit ProcessArg(const std::string& name, const std::function<void()>& code, void* data, s4u::Host* host,
double kill_time, const std::unordered_map<std::string, std::string>& properties,