From: Martin Quinson Date: Mon, 19 Dec 2016 13:59:23 +0000 (+0100) Subject: explicitely capture variables in lambda to please sonar X-Git-Tag: v3_14~29 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6df8a056a38f11dc657247acb58dd4afc553d849?hp=f1c440626e48ed8e544c438b6e0fcb178d654596;ds=sidebyside explicitely capture variables in lambda to please sonar --- diff --git a/src/s4u/s4u_netzone.cpp b/src/s4u/s4u_netzone.cpp index 3d9e085a6f..1124461185 100644 --- a/src/s4u/s4u_netzone.cpp +++ b/src/s4u/s4u_netzone.cpp @@ -54,7 +54,7 @@ const char* NetZone::property(const char* key) } void NetZone::setProperty(const char* key, const char* value) { - simgrid::simix::kernelImmediate([=] { + simgrid::simix::kernelImmediate([=,&key,&value] { properties_[key] = value; }); }