[Bf-blender-cvs] [337b918b92a] functions: missing value forwarding

Jacques Lucke noreply at git.blender.org
Thu Jan 30 09:18:59 CET 2020


Commit: 337b918b92a15d6b4cf97b669e78f5868443eff1
Author: Jacques Lucke
Date:   Wed Jan 29 21:21:10 2020 +0100
Branches: functions
https://developer.blender.org/rB337b918b92a15d6b4cf97b669e78f5868443eff1

missing value forwarding

===================================================================

M	source/blender/blenlib/BLI_multi_map.h

===================================================================

diff --git a/source/blender/blenlib/BLI_multi_map.h b/source/blender/blenlib/BLI_multi_map.h
index 0b9c8c645e0..dcd1665519e 100644
--- a/source/blender/blenlib/BLI_multi_map.h
+++ b/source/blender/blenlib/BLI_multi_map.h
@@ -178,7 +178,7 @@ template<typename KeyT, typename ValueT, uint N = 4> class MultiMap {
   void add_multiple__impl(ForwardKeyT &&key, ArrayRef<ValueT> values)
   {
     for (const ValueT &value : values) {
-      this->add(key, value);
+      this->add(std::forward<ForwardKeyT>(key), value);
     }
   }



More information about the Bf-blender-cvs mailing list