Parcourir la 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 il y a 4 ans
Parent
commit
d4fe63d2ce
1 fichiers modifiés avec 0 ajouts et 2 suppressions
  1. 0 2
      AK/Span.h

+ 0 - 2
AK/Span.h

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