Commit 9420c741 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

util/AllocatedArray: add nullptr constructor

parent b1bef9c2
......@@ -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) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment