فهرست منبع

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.
Daniel Bertalan 4 سال پیش
والد
کامیت
d000ca1ec3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      AK/IntrusiveListRelaxedConst.h

+ 1 - 1
AK/IntrusiveListRelaxedConst.h

@@ -18,7 +18,7 @@ class IntrusiveListRelaxedConst : public IntrusiveList<T, Container, member> {
 public:
     using IntrusiveList<T, Container, member>::IntrusiveList;
 
-    using Iterator = IntrusiveList<T, Container, member>::Iterator;
+    using Iterator = typename IntrusiveList<T, Container, member>::Iterator;
 
     Iterator begin() const { return const_cast<IntrusiveListRelaxedConst*>(this)->IntrusiveList<T, Container, member>::begin(); }
     Iterator end() const { return Iterator {}; }