From c42450786c0a6b731849b9e4b316e9ec10a29ead Mon Sep 17 00:00:00 2001 From: asynts Date: Mon, 27 Jul 2020 14:16:04 +0200 Subject: [PATCH] AK: Add implicit conversion from nullptr to Span. --- AK/Span.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AK/Span.h b/AK/Span.h index 4a856fe83c..ecdf57af24 100644 --- a/AK/Span.h +++ b/AK/Span.h @@ -109,6 +109,11 @@ public: using Detail::Span::Span; + ALWAYS_INLINE Span(std::nullptr_t) + : Span() + { + } + ALWAYS_INLINE Span(const Span& other) : Span(other.m_values, other.m_size) {