[Bf-blender-cvs] [d59f6ffdcb4] master: Fix: Wrong const iterator type for blender::Vector
Hans Goudey
noreply at git.blender.org
Mon Dec 19 06:24:20 CET 2022
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());
}
/**
More information about the Bf-blender-cvs
mailing list