Commit: d59f6ffdcb4a008e5d3a8a2638fea40cf19912a0
Author: Hans Goudey
Date:   Sun Dec 18 18:35:40 2022 -0600
Branches: master
https://developer.blender.org/rBd59f6ffdcb4a008e5d3a8a2638fea40cf19912a0

Fix: Wrong const iterator type for blender::Vector

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

M       source/blender/blenlib/BLI_vector.hh

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

diff --git a/source/blender/blenlib/BLI_vector.hh 
b/source/blender/blenlib/BLI_vector.hh
index be594377eb3..8860bb05127 100644
--- a/source/blender/blenlib/BLI_vector.hh
+++ b/source/blender/blenlib/BLI_vector.hh
@@ -902,11 +902,11 @@ class Vector {
 
   std::reverse_iterator<const T *> rbegin() const
   {
-    return std::reverse_iterator<T *>(this->end());
+    return std::reverse_iterator<const T *>(this->end());
   }
   std::reverse_iterator<const T *> rend() const
   {
-    return std::reverse_iterator<T *>(this->begin());
+    return std::reverse_iterator<const T *>(this->begin());
   }
 
   /**

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to