diff --git a/include/JSystem/JGadget/List.hxx b/include/JSystem/JGadget/List.hxx index 9835993..3588ce1 100644 --- a/include/JSystem/JGadget/List.hxx +++ b/include/JSystem/JGadget/List.hxx @@ -357,9 +357,9 @@ namespace JGadget { iterator begin() _GLIBCXX_NOEXCEPT { return iterator(mBegin); } const_iterator begin() const _GLIBCXX_NOEXCEPT { return const_iterator(mBegin); } - iterator end() _GLIBCXX_NOEXCEPT { return iterator(reinterpret_cast(&mBegin)); } + iterator end() _GLIBCXX_NOEXCEPT { return iterator(reinterpret_cast(&mEnd)); } const_iterator end() const _GLIBCXX_NOEXCEPT { - return const_iterator(reinterpret_cast(&mBegin)); + return const_iterator(reinterpret_cast(&mEnd)); } #if __cplusplus >= 201103L