Browse Source

AK: Remove incorrect static assert in Span.h.

This assertion was added to prevent accitentally using stuff like
Span<int*> instead of Span<int>. But there can be spans of pointers.
asynts 4 years ago
parent
commit
d4fe63d2ce
1 changed files with 0 additions and 2 deletions
  1. 0 2
      AK/Span.h

+ 0 - 2
AK/Span.h

@@ -105,8 +105,6 @@ public:
     using Iterator = T*;
     using Iterator = T*;
     using ConstIterator = const T*;
     using ConstIterator = const T*;
 
 
-    static_assert(!IsPointer<T>::value);
-
     using Detail::Span<T>::Span;
     using Detail::Span<T>::Span;
 
 
     ALWAYS_INLINE Span(std::nullptr_t)
     ALWAYS_INLINE Span(std::nullptr_t)