diff --git a/src/util/AllocatedArray.hxx b/src/util/AllocatedArray.hxx index e0491be89..c920d9f06 100644 --- a/src/util/AllocatedArray.hxx +++ b/src/util/AllocatedArray.hxx @@ -70,6 +70,9 @@ public: std::copy_n(src.data, src.size, buffer.data); } + AllocatedArray(std::nullptr_t n) noexcept + :buffer(n) {} + explicit AllocatedArray(const AllocatedArray &other) noexcept :AllocatedArray(other.buffer) {}