Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
explicitely capture variables in lambda to please sonar
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 19 Dec 2016 13:59:23 +0000 (14:59 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 19 Dec 2016 23:11:07 +0000 (00:11 +0100)
src/s4u/s4u_netzone.cpp

index 3d9e085..1124461 100644 (file)
@@ -54,7 +54,7 @@ const char* NetZone::property(const char* key)
 }
 void NetZone::setProperty(const char* key, const char* value)
 {
 }
 void NetZone::setProperty(const char* key, const char* value)
 {
-  simgrid::simix::kernelImmediate([=] {
+  simgrid::simix::kernelImmediate([=,&key,&value] {
     properties_[key] = value;
   });
 }
     properties_[key] = value;
   });
 }