AK: Delete the StringView move-assignment operator for various types

This commit is contained in:
Timothy Flynn 2023-01-28 08:22:54 -05:00 committed by Linus Groh
parent c55a5add0f
commit b61f8cd130
Notes: sideshowbarker 2024-07-17 01:11:48 +09:00

View file

@ -60,6 +60,9 @@ public:
explicit StringView(DeprecatedFlyString&&) = delete;
#endif
template<OneOf<String, DeprecatedString, DeprecatedFlyString, ByteBuffer> StringType>
StringView& operator=(StringType&&) = delete;
[[nodiscard]] constexpr bool is_null() const
{
return m_characters == nullptr;