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.
This commit is contained in:
asynts 2020-08-15 20:07:32 +02:00 committed by Andreas Kling
parent d90f8abe9d
commit d4fe63d2ce
Notes: sideshowbarker 2024-07-19 03:35:18 +09:00

View file

@ -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)