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
commit caedd05bd8
Notes: sideshowbarker 2024-07-19 03:52:55 +09:00

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