From 59ad639fa8aa078eca13fda0fb834920836efd77 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 7 Dec 2023 11:14:15 +0200 Subject: [PATCH] BAN: Fix simple iterator operator--() --- BAN/include/BAN/Iterators.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BAN/include/BAN/Iterators.h b/BAN/include/BAN/Iterators.h index fe014e16..5c01d549 100644 --- a/BAN/include/BAN/Iterators.h +++ b/BAN/include/BAN/Iterators.h @@ -59,7 +59,8 @@ namespace BAN IteratorSimpleGeneral& operator--() { ASSERT(m_pointer); - return --m_pointer; + --m_pointer; + return *this; } IteratorSimpleGeneral operator--(int) {