X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/27c1138a3b5a2063ea93247b91e4bef2d36d808c..dc910462a7bbe778971c7d9ca460a7252474900b:/include/xbt/config.hpp diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index 4430150115..a3eb3fddcd 100644 --- a/include/xbt/config.hpp +++ b/include/xbt/config.hpp @@ -159,7 +159,7 @@ bind_flag(std::string& value, const char* name, const char* description, std::function([&value, name, valid_values, callback](const std::string& val) { callback(val); if (valid_values.find(val) != valid_values.end()) { - value = std::move(val); + value = val; return; } std::string mesg = "\n"; @@ -256,7 +256,7 @@ public: F callback) : value_(value), name_(name) { - simgrid::config::bind_flag(value_, name, desc, std::move(valid_values), std::move(callback)); + simgrid::config::bind_flag(value_, name, desc, valid_values, std::move(callback)); } /* A constructor with everything */