diff --git a/AK/IntrusiveListRelaxedConst.h b/AK/IntrusiveListRelaxedConst.h index a305c08a8cb..9c431972e03 100644 --- a/AK/IntrusiveListRelaxedConst.h +++ b/AK/IntrusiveListRelaxedConst.h @@ -18,7 +18,7 @@ class IntrusiveListRelaxedConst : public IntrusiveList { public: using IntrusiveList::IntrusiveList; - using Iterator = IntrusiveList::Iterator; + using Iterator = typename IntrusiveList::Iterator; Iterator begin() const { return const_cast(this)->IntrusiveList::begin(); } Iterator end() const { return Iterator {}; }