1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:28:11 +00:00

AK: Span<T>::operator=(const T&) => Span<T>::operator=(const Span<T>&)

This commit is contained in:
AnotherTest 2020-08-11 21:24:29 +04:30 committed by Andreas Kling
parent c37dc4ae73
commit caedd05bd8

View file

@ -176,10 +176,11 @@ public:
return this->m_values[index];
}
ALWAYS_INLINE T& operator=(const T& other)
ALWAYS_INLINE Span& operator=(const Span<T>& other)
{
this->m_size = other.m_size;
this->m_values = other.m_values;
return *this;
}
ALWAYS_INLINE operator Span<const T>() const