diff --git a/AK/Iterator.h b/AK/Iterator.h index bf45c03862e..953c0919670 100644 --- a/AK/Iterator.h +++ b/AK/Iterator.h @@ -52,11 +52,11 @@ public: return SimpleIterator { m_container, m_index + 1 }; } - ALWAYS_INLINE constexpr const ValueType& operator*() const { return m_container[m_index]; } + ALWAYS_INLINE constexpr ValueType const& operator*() const { return m_container[m_index]; } ALWAYS_INLINE constexpr ValueType& operator*() { return m_container[m_index]; } - constexpr auto operator->() const { return &m_container[m_index]; } - constexpr auto operator->() { return &m_container[m_index]; } + ALWAYS_INLINE constexpr ValueType const* operator->() const { return &m_container[m_index]; } + ALWAYS_INLINE constexpr ValueType* operator->() { return &m_container[m_index]; } SimpleIterator& operator=(const SimpleIterator& other) {