Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Explicitly capture the required variables (sonar).
[simgrid.git] / src / s4u / s4u_Actor.cpp
index d5e3066..4523954 100644 (file)
@@ -69,7 +69,7 @@ void Actor::set_auto_restart(bool autorestart)
 
 void Actor::on_exit(int_f_pvoid_pvoid_t fun, void* data)
 {
-  simgrid::simix::kernelImmediate([&] { SIMIX_process_on_exit(pimpl_, fun, data); });
+  simgrid::simix::kernelImmediate([this, fun, data] { SIMIX_process_on_exit(pimpl_, fun, data); });
 }
 
 /** @brief Moves the actor to another host