A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Explicitly capture the required variables (sonar).
[simgrid.git]
/
src
/
s4u
/
s4u_Actor.cpp
diff --git
a/src/s4u/s4u_Actor.cpp
b/src/s4u/s4u_Actor.cpp
index
d5e3066
..
4523954
100644
(file)
--- a/
src/s4u/s4u_Actor.cpp
+++ b/
src/s4u/s4u_Actor.cpp
@@
-69,7
+69,7
@@
void Actor::set_auto_restart(bool autorestart)
void Actor::on_exit(int_f_pvoid_pvoid_t fun, void* data)
{
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
}
/** @brief Moves the actor to another host