From e3a71289c01cd717746535b62bded9e097748364 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 6 Mar 2023 01:46:52 +0200 Subject: [PATCH] BAN: fix LinkedList back/front functions --- BAN/include/BAN/LinkedList.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BAN/include/BAN/LinkedList.h b/BAN/include/BAN/LinkedList.h index e270a9a7..8c6cb71f 100644 --- a/BAN/include/BAN/LinkedList.h +++ b/BAN/include/BAN/LinkedList.h @@ -234,28 +234,28 @@ namespace BAN const T& LinkedList::back() const { ASSERT(!empty()); - return *const_iterator(m_last); + return *const_iterator(m_last, false); } template T& LinkedList::back() { ASSERT(!empty()); - return *iterator(m_last); + return *iterator(m_last, false); } template const T& LinkedList::front() const { ASSERT(!empty()); - return *const_iterator(m_data); + return *const_iterator(m_data, false); } template T& LinkedList::front() { ASSERT(!empty()); - return *iterator(m_data); + return *iterator(m_data, false); } template