Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] asks for std::forward.
[simgrid.git] / include / xbt / config.hpp
index 86cfc8e..7dedb71 100644 (file)
@@ -286,7 +286,7 @@ public:
   template<class U>
   Flag& operator=(U const& that) { value_ = that; return *this; }
   template<class U>
-  Flag& operator=(U && that)     { value_ = that; return *this; }
+  Flag& operator=(U&& that) { value_ = std::forward<U>(that); return *this; }
   template<class U>
   bool operator==(U const& that) const { return value_ == that; }
   template<class U>