From d000ca1ec3a3ba30f3b1e846b8ceb6897b2f2bd5 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Sat, 7 Aug 2021 18:20:45 +0200 Subject: [PATCH] AK: Add `typename` keyword for dependent types This was made optional in C++20 in most cases, but Clang doesn't support omitting it yet. See P0634R3. --- AK/IntrusiveListRelaxedConst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {}; }