add Buffer move assignment operator
This commit is contained in:
parent
229456ced5
commit
b3d942b76c
@ -37,6 +37,8 @@ namespace util {
|
||||
|
||||
Buffer(std::nullptr_t) noexcept : ptr(nullptr), length(0) {}
|
||||
|
||||
Buffer& operator=(Buffer&&) = default;
|
||||
|
||||
inline bool operator==(std::nullptr_t) const noexcept {
|
||||
return ptr == nullptr;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user