Skip to content

Commit 3b3214e

Browse files
committed
iterators increment/decrement return type fix
1 parent 93058ae commit 3b3214e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/BPlusTreeBaseIterator.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class BPlusTreeBaseIterator
2828
typedef int difference_type;
2929
typedef typename Node::childs_type_iterator childs_type_iterator;
3030

31-
self_type operator++();
31+
self_type& operator++();
3232
self_type operator++(int);
33-
self_type operator--();
33+
self_type& operator--();
3434
self_type operator--(int);
3535
reference operator*();
3636
pointer operator->();
@@ -165,7 +165,7 @@ bool __B_PLUS_TREE_BASEITERATOR_CLASS__::expired()
165165
}
166166

167167
__B_PLUS_TREE_ITERATOR_TEMPLATE__
168-
typename __B_PLUS_TREE_BASEITERATOR_CLASS__::self_type __B_PLUS_TREE_BASEITERATOR_CLASS__::operator++()
168+
typename __B_PLUS_TREE_BASEITERATOR_CLASS__::self_type& __B_PLUS_TREE_BASEITERATOR_CLASS__::operator++()
169169
{
170170
child_item_type_ptr it = item.lock();
171171
child_item_type_ptr oit = it;
@@ -259,7 +259,7 @@ typename __B_PLUS_TREE_BASEITERATOR_CLASS__::self_type __B_PLUS_TREE_BASEITERATO
259259
}
260260

261261
__B_PLUS_TREE_ITERATOR_TEMPLATE__
262-
typename __B_PLUS_TREE_BASEITERATOR_CLASS__::self_type __B_PLUS_TREE_BASEITERATOR_CLASS__::operator--()
262+
typename __B_PLUS_TREE_BASEITERATOR_CLASS__::self_type& __B_PLUS_TREE_BASEITERATOR_CLASS__::operator--()
263263
{
264264
child_item_type_ptr it = item.lock();
265265
child_item_type_ptr oit = it;

0 commit comments

Comments
 (0)