diff --git a/src/util/AllocatedArray.hxx b/src/util/AllocatedArray.hxx index c920d9f06..9a2b08690 100644 --- a/src/util/AllocatedArray.hxx +++ b/src/util/AllocatedArray.hxx @@ -110,6 +110,12 @@ public: return *this; } + AllocatedArray &operator=(std::nullptr_t n) noexcept { + delete[] buffer.data; + buffer = n; + return *this; + } + operator ConstBuffer() const noexcept { return buffer; }