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.
This commit is contained in:
Daniel Bertalan 2021-08-07 18:20:45 +02:00 committed by Andreas Kling
parent 1472f6d986
commit d000ca1ec3
Notes: sideshowbarker 2024-07-18 07:15:20 +09:00

View file

@ -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 {}; }