瀏覽代碼

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 年之前
父節點
當前提交
d4fe63d2ce
共有 1 個文件被更改,包括 0 次插入2 次删除
  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)