Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Whenever possible, use std::move() for parameters (mostly std::string).
[simgrid.git] / src / s4u / s4u_Link.cpp
index d09897b..afa6825 100644 (file)
@@ -111,7 +111,7 @@ const char* Link::get_property(std::string key)
 }
 void Link::set_property(std::string key, std::string value)
 {
-  simgrid::simix::simcall([this, key, value] { this->pimpl_->set_property(key, value); });
+  simgrid::simix::simcall([this, key, value] { this->pimpl_->set_property(key, std::move(value)); });
 }
 } // namespace s4u
 } // namespace simgrid