util/AllocatedArray: add operator=(nullptr)
This commit is contained in:
parent
0ded23591b
commit
c44a7b2705
@ -110,6 +110,12 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AllocatedArray &operator=(std::nullptr_t n) noexcept {
|
||||||
|
delete[] buffer.data;
|
||||||
|
buffer = n;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
operator ConstBuffer<T>() const noexcept {
|
operator ConstBuffer<T>() const noexcept {
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user