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:
parent
d90f8abe9d
commit
d4fe63d2ce
Notes:
sideshowbarker
2024-07-19 03:35:18 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/d4fe63d2cee Pull-request: https://github.com/SerenityOS/serenity/pull/3166 Reviewed-by: https://github.com/nico
1 changed files with 0 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue