Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
explicitely capture variables in lambda to please sonar
[simgrid.git] / 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;
   });
 }