From d4fe63d2cee6ff62512fbebb164481d6013f28a3 Mon Sep 17 00:00:00 2001 From: asynts Date: Sat, 15 Aug 2020 20:07:32 +0200 Subject: [PATCH] AK: Remove incorrect static assert in Span.h. This assertion was added to prevent accitentally using stuff like Span instead of Span. But there can be spans of pointers. --- AK/Span.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/AK/Span.h b/AK/Span.h index 847a26cafe..4c42c7d63d 100644 --- a/AK/Span.h +++ b/AK/Span.h @@ -105,8 +105,6 @@ public: using Iterator = T*; using ConstIterator = const T*; - static_assert(!IsPointer::value); - using Detail::Span::Span; ALWAYS_INLINE Span(std::nullptr_t)